[Unit] Description=WIservice After=httpd.service # start/stop WIservice # PartOf=httpd.service [Service] Type=simple ExecStart=/opt/WIService/wiservice.py -w 1505 -m 120 --nolog --start #ExecStart=/opt/WIService/wiservice.py -w 1505 -m 120 --start -d -D ExecStop=/opt/WIService/wiservice.py --stop KillMode=process TimeoutStopSec=10 Restart=always RestartSec=10 #StandardOutput=/var/log/apache2/domlogs/infodata/wiapp.log #StandardError=/var/log/apache2/domlogs/infodata/wiapp.log StandardOutput=syslog StandardError=syslog SyslogIdentifier=WIservice [Install] WantedBy=multi-user.target