Daemontools on Centos 7

Cut’n’paste from http://www.productionmonkeys.net/guides/qmail-server/daemontools

CentOS 7 uses systemd

Create a new file /etc/systemd/system/daemontools.service, with the startup code in it:

[Unit]
Description=daemontools Start supervise
After=getty.target
[Service]
Type=simple
User=root
Group=root
Restart=always
ExecStart=/command/svscanboot /dev/ttyS0
TimeoutSec=0
[Install]
WantedBy=multi-user.target

Start the service:

systemctl start daemontools.service

Test that it is running:

systemctl status daemontools.service

Enable it to start at boot:

systemctl enable daemontools.service

Leave a Reply

Your email address will not be published. Required fields are marked *