Be nicer with the system
This commit is contained in:
parent
8147044c58
commit
7e93832f29
6 changed files with 7 additions and 0 deletions
|
@ -12,6 +12,7 @@ Before=haproxy.service
|
|||
|
||||
[Service]
|
||||
Restart=always
|
||||
RestartSec=20
|
||||
TimeoutStartSec=0
|
||||
ExecStartPre=-/usr/bin/docker kill %p
|
||||
ExecStartPre=-/usr/bin/docker rm %p
|
||||
|
|
|
@ -9,6 +9,7 @@ After=docker.service
|
|||
|
||||
[Service]
|
||||
Restart=always
|
||||
RestartSec=20
|
||||
TimeoutStartSec=0
|
||||
ExecStartPre=-/usr/bin/docker kill %p
|
||||
ExecStartPre=-/usr/bin/docker rm %p
|
||||
|
|
|
@ -9,6 +9,7 @@ After=docker.service
|
|||
|
||||
[Service]
|
||||
Restart=always
|
||||
RestartSec=20
|
||||
TimeoutStartSec=0
|
||||
ExecStartPre=-/usr/bin/docker kill %p
|
||||
ExecStartPre=-/usr/bin/docker rm %p
|
||||
|
|
|
@ -13,6 +13,7 @@ BindsTo=lamp@%i.service
|
|||
|
||||
[Service]
|
||||
Restart=always
|
||||
RestartSec=20
|
||||
TimeoutStartSec=0
|
||||
Type=notify
|
||||
NotifyAccess=all
|
||||
|
|
|
@ -8,6 +8,8 @@ Requires=web@%i.service
|
|||
Before=web@%i.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/bin/bash -euxc ' \
|
||||
application_folder=/data/domains/%i/%p/www-content; \
|
||||
if [ ! -d $application_folder ]; then \
|
||||
|
|
|
@ -13,6 +13,7 @@ Before=backup@%i.timer
|
|||
|
||||
[Service]
|
||||
Restart=always
|
||||
RestartSec=20
|
||||
TimeoutStartSec=0
|
||||
Type=notify
|
||||
NotifyAccess=all
|
||||
|
|
Loading…
Reference in a new issue