pub1c-web/apache_restarter/apache_restarter.service

15 lines
351 B
Desktop File

[Unit]
Description=Apache restart monitor
After=apache2.service
Wants=apache2.service
[Service]
ExecStartPre=/usr/bin/install -m 777 -d /run/apache_restart
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