Files
78f13be75c651814adc4f8fa23e3548737cd1005
swift /bin
Matthew Vernon e838d8a947 swift-drive-audit: reload systemd after editing fstab
Systemd does not monitor /etc/fstab for changes; so a filesystem
unmounted and commented-out in fstab will be re-mounted by systemd
after some time.
This change means that swift-drive-audit will call systemcl
daemon-reload (which causes systemd to reload its configuration
including /etc/fstab) after editing /etc/fstab on systems where
systemd is the running init. Check for that case by looking for the
existence of the directory /run/systemd/system, as documented in
sd_booted(3).
Signed-off-by: Matthew Vernon <mvernon@wikimedia.org>
Change-Id: I8830e3da9b6b085224511ac351f2d2860119c432
2022年09月30日 09:47:24 +01:00
..
2013年09月20日 01:02:31 +08:00
2021年02月01日 13:26:53 -08:00
2013年09月20日 01:02:31 +08:00
2021年02月01日 13:26:53 -08:00
2021年02月01日 13:26:53 -08:00
2015年08月06日 11:02:40 +09:00
2017年09月13日 05:57:30 +00:00
2014年07月24日 14:38:53 -07:00
2013年09月20日 01:02:31 +08:00
2013年09月20日 01:02:31 +08:00
2021年02月01日 13:26:53 -08:00
2019年08月30日 11:54:47 -07:00
2015年08月06日 11:02:40 +09:00
2015年08月06日 11:02:40 +09:00