check-http/yunodiagnoser.service

12 lines
373 B
SYSTEMD
Raw Permalink Normal View History

[Unit]
Description=A server providing features for remote-diagnosis for Yunohost servers
[Service]
Type=simple
WorkingDirectory={{ WORKING_DIR }}
2023-04-14 14:34:10 +02:00
ExecStart={{ WORKING_DIR }}/venv/bin/python3 yunodiagnoser.py &> server.log
ExecStop=/bin/kill `/bin/ps aux | /bin/grep yunodiagnoser.py | /bin/grep -v grep | /usr/bin/awk '{ print $2 }'`
[Install]
WantedBy=multi-user.target