26 lines
626 B
Plaintext
26 lines
626 B
Plaintext
[Unit]
|
|
Description=Collectd - statistics collection daemon
|
|
After=local-fs.target network.target
|
|
Requires=local-fs.target network.target
|
|
|
|
[Service]
|
|
ExecStart=/usr/sbin/collectdmon
|
|
|
|
# Tell systemd it will receive a notification from collectd over it's control
|
|
# socket once the daemon is ready. See systemd.service(5) for more details.
|
|
#Type=notify
|
|
#NotifyAccess=main
|
|
Type=forking
|
|
RemainAfterExit=yes
|
|
|
|
# Restart the collectd daemon after a 10 seconds delay, in case it crashes.
|
|
Restart=always
|
|
RestartSec=10
|
|
|
|
# Send all console messages to syslog.
|
|
StandardOutput=syslog
|
|
StandardError=syslog
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|