В дистрибутиве maia mailguard есть service файл maiad.service:
[Unit]
Description=Maiad Daemon
After = syslog.target nss-lookup.target network.target
[Service]
Type=forking
ExecStart = /var/lib/maia/maiad
Restart = on-failure
PrivateTmp=true
[Install]
WantedBy=multi-user.target
Я выполнил такие шаги:
$ sudo cp maiad.service /lib/systemd/system
$ sudo ln -s /lib/systemd/system/maiad.service /etc/systemd/system/maiad.service
$ sudo service maiad start
Job for maiad.service failed because the control process exited with error code.
See "systemctl status maiad.service" and "journalctl -xe" for details.
В логе минимум инфы:
systemd[1]: maiad.service: Start request repeated too quickly.
systemd[1]: Failed to start Maiad Daemon.
systemd[1]: maiad.service: Unit entered failed state.
systemd[1]: maiad.service: Failed with result 'exit-code'.