run script and service

This commit is contained in:
2021-06-17 15:56:44 +03:00
parent 49bf010b87
commit d91152fdfb
3 changed files with 23 additions and 2 deletions

13
webpub1c-admin.service Normal file
View File

@@ -0,0 +1,13 @@
[Unit]
Description=1C Web Publication Admin service
After=apache2.service apache_restarter.service
Wants=apache2.service apache_restarter.service
[Service]
ExecStart=/path/run.sh
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
RestartSec=2s
[Install]
WantedBy=multi-user.target