systemd && openlitespeed

10 views
Skip to first unread message

Stefano Balocco

unread,
Feb 4, 2018, 6:16:31 PM2/4/18
to OpenLiteSpeed Development
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!
Reply all
Reply to author
Forward
0 new messages