2021-06-17 14:49:59 +03:00
|
|
|
[Unit]
|
|
|
|
Description=Apache restart monitor
|
|
|
|
After=apache2.service
|
|
|
|
Wants=apache2.service
|
|
|
|
|
|
|
|
[Service]
|
2021-06-22 17:23:29 +03:00
|
|
|
ExecStartPre=/usr/bin/install -m 777 -d /run/apache_restart
|
2021-06-17 14:49:59 +03:00
|
|
|
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
|