Files
ignition/collectd.container
Dustin C. Hatch dd3be7a24a collectd: Restart service automatically
The *collectd.service* unit may fail for various reasons.  Notably, if
the container image is not present, it may fail to start if it is
activated before the network is fully available.  Using systemd's
automatic restart mechanism will help ensure *collectd* is running
whenever possible.
2023-10-04 20:50:30 -05:00

27 lines
522 B
Plaintext

# vim: set ft=systemd :
[Unit]
Description=Collectd statistics daemon
After=network.target
Wants=network.target
[Container]
Image=git.pyrocufflink.net/containerimages/collectd:latest
Volume=/etc/collectd.d:/etc/collectd.d:ro
Volume=/run:/run:rw
Tmpfs=/tmp
Network=host
SecurityLabelDisable=true
PodmanArgs=--privileged
PodmanArgs=--ipc=host
PodmanArgs=--uts=host
PodmanArgs=--pid=host
PodmanArgs=--cgroupns=host
[Service]
Restart=always
StartLimitIntervalSec=10s
StartLimitBurst=10
[Install]
WantedBy=multi-user.target