Hello,
On OpenSUSE I am trying to convert one of my init script to a systemd service file.
Here is what I wrote
Code:
[Unit]
Description=myscript
#
#Requires=
#
#After=syslog.target
[Service]
ExecStart=/bin/bash -c "if [ -f /opt/script.py ]; then /usr/bin/python /opt/script.py; fi"
#
#
Type=forking
PIDFile=/var/run/script.pid
[Install]
WantedBy=multi-user.target
When starting it, it fails.
What did I miss ?
Thanks