Skip to content

Commit

Permalink
systemd: (systemd.plugin) track symlinks of enabled services
Browse files Browse the repository at this point in the history
  • Loading branch information
Ratler committed Oct 12, 2013
1 parent 3123c44 commit 1319551
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion system/systemd/plugin.d/systemd.plugin
Expand Up @@ -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

Expand Down

0 comments on commit 1319551

Please sign in to comment.