endless
endless copied to clipboard
can't work with systemd
I use systemd to manage go app.
config:
ExecReload=/bin/kill -s HUP $MAINPID
Because of pid change, systemd think process failed, and use ExecStart to start process.But process was started by endless, systemd think process start failed.
How can I use endless with systemd?
in your service/unit file, use the parameter
PIDFile=
and specify the path to the pid file
That will help systemd work with endless