Hello,
I'm new to CentOS 7 's systemd, I'm trying to produce a perfect systemd service file for openlitespeed 1.4.11.
As Openlitespeed doenst' add a service file on installation I'm trying to make my own.
So far I have created :
Am I missing anything ?
mariab's one has things like
Not sure what that means though.
When I run systemctl is-active lsws
it says it's inactive, how do I tell systemd that the service is active ? Do I do it with ExecStartPost ?
Thanks
I'm new to CentOS 7 's systemd, I'm trying to produce a perfect systemd service file for openlitespeed 1.4.11.
As Openlitespeed doenst' add a service file on installation I'm trying to make my own.
So far I have created :
Code:
[Unit]
Description=openlitespeed web server
[Service]
Type=simple
User=root
Group=root
ExecStart=/usr/local/lsws/bin/lswsctrl start
ExecReload=/usr/local/lsws/bin/lswsctrl reload
ExecRestart=/usr/local/lsws/bin/lswsctrl restart
ExecStop=/usr/local/lsws/bin/lswsctrl stop
ExecStatus=/usr/local/lsws/bin/lswsctrl status
[Install]
WantedBy=multi-user.target
mariab's one has things like
Code:
After=syslog.target
After=network.target
When I run systemctl is-active lsws
it says it's inactive, how do I tell systemd that the service is active ? Do I do it with ExecStartPost ?
Thanks