Be nicer with the system

This commit is contained in:
pierreozoux 2015-01-15 17:37:11 +01:00
parent 8147044c58
commit 7e93832f29
6 changed files with 7 additions and 0 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -13,6 +13,7 @@ BindsTo=lamp@%i.service
[Service]
Restart=always
RestartSec=20
TimeoutStartSec=0
Type=notify
NotifyAccess=all

View file

@ -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 \

View file

@ -13,6 +13,7 @@ Before=backup@%i.timer
[Service]
Restart=always
RestartSec=20
TimeoutStartSec=0
Type=notify
NotifyAccess=all