I have added WantedBy=sysinit.target
.
Thanks for the help.
I intentionally do not install in a way that after package installation it is automatically started, because I see it as bad practise when installation of a software (which can be used manually) forces a change in the startup process. The user should manually decide how to use the software and weather he/she wants automatic startup or not.
Pinned Comments
dreieck commented on 2023-02-21 12:11 (UTC)
I have added init scripts for OpenRC, sysvinit, systemd.
Note that I am on an OpenRC system and not on a systemd-system. And I don't know much about systemd.
I made the systemd init file "blindly" and with some guesswork.
Please, submit in the comments how the systemd (and sysvinit) scripts can be made better or can be fixed in case they are broken.
Regards!