Open robert-scheck opened 6 years ago
I don't really have a way currently to fix this. I agree it should be fixed, but I think it's going to need some refactoring to get there so I'm going to defer it. It gets complicated by bind mounts.
Oh, bind mounts! I didn't think about these…
I'm imagining something that takes the config and the state (started or stopped) and generates a list of the desired state ("/etc/crontab is a symlink to ...", "/etc/cron.d/batchjobs is a bindmount to ..."), and then the start/stop/status could go through and make the system look like the desired state.
That seems like a cleaner way to do it, but not something I can do today. But I also admit I may have just been using Ansible too long. :-)
If my
/etc/drbdlinks.conf
containsunfortunately
drbdlinks status
still sayseven if it looks like this
while it should be
In this case, something dereferenced
/etc/crontab
symlink outside ofdrbdlinks
by accident, butdrbdlinks
does not detect this scenario (unfortunately). Note, this also could happen for a directory, so the check likely should be if managed symlink is really a symlink.