diff --git a/apache_restarter/apache_restarter.service b/apache_restarter/apache_restarter.service index c506368..6cf9509 100644 --- a/apache_restarter/apache_restarter.service +++ b/apache_restarter/apache_restarter.service @@ -4,6 +4,7 @@ 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