Systemd


To start immortaldir on Linux with systemd, put this script in /etc/systemd/system/immortaldir.service:

[Unit]
Description=immortaldir
After=network.target

[Service]
ExecStart=/usr/bin/immortaldir /etc/immortal 2>&1 | logger -t immortaldir
KillMode=process
Restart=always
Restart=on-failure
Type=simple
User=root

[Install]
WantedBy=multi-user.target
comments powered by Disqus