summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/swift-drive-audit4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/swift-drive-audit b/bin/swift-drive-audit
index b77167042..03662bc25 100755
--- a/bin/swift-drive-audit
+++ b/bin/swift-drive-audit
@@ -18,6 +18,7 @@ import datetime
import glob
import locale
import os
+import os.path
import re
import subprocess
import sys
@@ -222,3 +223,6 @@ if __name__ == '__main__':
if unmounts == 0:
logger.info("No drives were unmounted")
+ elif os.path.isdir("/run/systemd/system"):
+ logger.debug("fstab updated, calling systemctl daemon-reload")
+ subprocess.call(["/usr/bin/systemctl", "daemon-reload"])