+apache_restarter
This commit is contained in:
13
apache_restarter/apache_restarter.service
Normal file
13
apache_restarter/apache_restarter.service
Normal file
@@ -0,0 +1,13 @@
|
||||
[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
|
Reference in New Issue
Block a user