Etwas wie das:
[Unit] Description=Description of daemon After=network.target [Service] #WorkingDirectory=/path/to/program/ #User= #Group= Type=forking ExecStart=/path/to/program/program start ExecStop=/path/to/program/program stop #PIDFile=/path/to/pid/file.pid #RestartSec=15 #Restart=always [Install] WantedBy=multi-user.target