diff options
author | Vanush "Misha" Paturyan | 2016-09-08 19:57:26 +0100 |
---|---|---|
committer | Vanush "Misha" Paturyan | 2016-09-08 20:03:37 +0100 |
commit | e7ca2c609274e0c1c2b7da2636ba2e78dfe90095 (patch) | |
tree | 676b891b35c15aa2862cd860f477a1e57c1941aa /cf-serverd.service | |
parent | 6e65e83f1294b3870ff9cab97a33b5fd38878a39 (diff) | |
download | aur-e7ca2c609274e0c1c2b7da2636ba2e78dfe90095.tar.gz |
3.7.4 and better systemd integration
Version bump to 3.7.4 and a better way to integrate cfengine with systemd. Individual services can be enabled/disabled and will be started or ignored when cfengine.service is started.
Diffstat (limited to 'cf-serverd.service')
-rw-r--r-- | cf-serverd.service | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/cf-serverd.service b/cf-serverd.service index 2b01f3b8e31d..3aba3f6dc66d 100644 --- a/cf-serverd.service +++ b/cf-serverd.service @@ -1,13 +1,22 @@ [Unit] Description=CFEngine Server Daemon -PartOf=cfengine3.service +Documentation=man:cf-serverd https://docs.cfengine.com/latest/reference-components-cf-serverd.html + After=network.target +# The following ensures that the service is activated only if we have a +# promises.cf in place. +PartOf=cfengine3.service + +[Install] +# The following ensures that the symlink to this unit is created in the +# cfengine3.service.requires/ directory when this unit is enabled +# with "systemctl enable" command, and removed with "systemctl disable" +RequiredBy=cfengine3.service + [Service] ExecStart=/var/cfengine/bin/cf-serverd Type=forking PIDFile=/var/cfengine/cf-serverd.pid -[Install] -WantedBy=cfengine3.service -WantedBy=multi-user.target + |