pub1c-web/apache_restarter/apache_restarter.service

14 lines
291 B
SYSTEMD
Raw Normal View History

2021-06-17 11:49:59 +00:00
[Unit]
Description=Apache restart monitor
After=apache2.service
Wants=apache2.service
[Service]
ExecStart=/usr/bin/env python3 /path/apache_restarter.py /run/apache_restart/apache_restart
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
RestartSec=2s
[Install]
WantedBy=multi-user.target