I have my own app and want it to work as a service. It doesn't require any root permissions. I just want to be able to start it, to terminate gracefully (e.g.,
SIGINT – a few seconds wait –
SIGKILL), to restart if it fails once per hour, to get status – all of this
systemd does with services. There is no need to start it when OS starts, no need to include it in all services list.
The restriction is that it must not require root privileges, and should not be installed in system somehow (or, at least, be very non-invasive into system).
I managed to make it work if it placed in
systemctl --user link ~/loved.service. But it's desirable to run it directly from app folder.
systemctl could be used for such cases like this:
systemctl --user start ~/loved.service
When I run this, I get:
Failed to start ....mount: Unit ....mount not found.
Of course, mounting is not what I wanted.
How do I accomplish that?