[Lunar-commits] <moonbase-core> systemd: (systemd.plugin) track symlinks of enabled services

Stefan Wold ratler at lunar-linux.org
Sun Oct 27 11:21:23 CET 2013


commit 131955139cca268d93f5cfa095ee784d619f2f29
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Sat, 12 Oct 2013 01:24:34 -0700
URL: https://github.com/lunar-linux/moonbase-core/commit/131955139cca268d93f5cfa095ee784d619f2f29

systemd: (systemd.plugin) track symlinks of enabled services
---
  system/systemd/plugin.d/systemd.plugin | +7/-1     
  1 file changed, 7 insertions(+), 1 deletion(-)

--- a/system/systemd/plugin.d/systemd.plugin
+++ b/system/systemd/plugin.d/systemd.plugin
@@ -99,7 +99,13 @@ plugin_systemd_post_build()
     fi
     systemctl -q disable $SERVICE
     invoke_installwatch
-    systemctl -q enable $SERVICE
+
+    # Necessary to track enabled services with installwatch
+    # due to how systemctl creates symlinks
+    TOUCHME=$(systemctl enable $SERVICE 2>&1 | cut -d\' -f4)
+    if [ -n "$TOUCHME" ]; then
+      touch -h $TOUCHME
+    fi
     devoke_installwatch
   done
 




More information about the Lunar-commits mailing list