This is a very basic systemd daemon that I use in my production and would be awesome to document somewhere:
[Unit] Description=Phorge Daemons asd After=syslog.target network.target mariadb.service [Service] Type=forking User=phorge Group=phorge ExecStart=/var/www/phorge/bin/phd start ExecStop=/var/www/phorge/bin/phd stop [Install] WantedBy=multi-user.target
To install that:
systemctl daemon-reload systemctl enable phorge-phd systemctl start phorge-phd
For example here:
https://we.phorge.it/book/phorge/article/managing_daemons/
We can surely continue to do not document this, but it's not that strategic, since systemd is literally what now every distribution on the planet (except two) have.