-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcf-serverd.service
More file actions
27 lines (22 loc) · 1020 Bytes
/
Copy pathcf-serverd.service
File metadata and controls
27 lines (22 loc) · 1020 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
[Unit]
Description=CFEngine file server daemon
Documentation=man:cf-serverd https://docs.cfengine.com/latest/reference-components-cf-serverd.html
# The following ensures that cf-serverd is started when the network is available
# (if the network is down, there is little point in bringing up cf-serverd...)
After=network.target
# The following ensures that the service is activated only if we have a
# promises.cf in place. If there is no promises.cf, there is no configuration
# for the service either...
ConditionPathExists=/var/cfengine/inputs/promises.cf
# The following allows stopping/restarting of this service when
# cfengine3.serice is stopped/restarted
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]
Type=simple
ExecStart=/var/cfengine/bin/cf-serverd -F
Restart=always