Hello,
I'm updating my debian openlitespeed package and I'm trying to create a service file.
Actually the service file is:
[Unit]
Description=OpenLiteSpeed Web Server is a World Wide Web server
[Service]
Type=forking
ExecStart=/opt/lsws/bin/lscpd
PIDFile=/run/lshttpd.pid
ExecReload=/bin/kill -USR1 $MAINPID
[Install]
WantedBy=multi-user.target
It works fine, except that Reload doesn't work.
When I run the service by the command line, without systemd, kill -USR1 works.
When I run the service with systemd, prepending with strace, kill -USR1 works.
I suppose that is something related to the environment, any clue on how to fix that?
Thanks in advance!