systemd - follow up services

This commit is contained in:
Marco Ochse
2016-05-29 14:48:17 +02:00
parent faff7a17bf
commit dac91cc208
9 changed files with 216 additions and 1 deletions

View File

@ -0,0 +1,15 @@
[Unit]
Description=glastopf
Requires=docker.service
After=docker.service
[Service]
Restart=always
ExecStartPre=-/usr/bin/docker stop glastopf
ExecStartPre=-/usr/bin/docker rm -v glastopf
ExecStartPre=/bin/bash -c '/usr/bin/clean.sh glastopf off'
ExecStart=/usr/bin/docker run --name glastopf --rm=true -v /data/glastopf:/data/glastopf -v /data/ews:/data/ews -p 80:80 dtagdevsec/glastopf:latest1603
ExecStop=/usr/bin/docker stop glastopf
[Install]
WantedBy=multi-user.target