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=conpot
Requires=docker.service
After=docker.service
[Service]
Restart=always
ExecStartPre=-/usr/bin/docker stop conpot
ExecStartPre=-/usr/bin/docker rm -v conpot
ExecStartPre=/bin/bash -c '/usr/bin/clean.sh conpot off'
ExecStart=/usr/bin/docker run --name conpot --rm=true -v /data/conpot:/data/conpot -v /data/ews:/data/ews -p 81:80 -p 102:102 -p 161:161/udp -p 502:502 dtagdevsec/conpot:latest1603
ExecStop=/usr/bin/docker stop conpot
[Install]
WantedBy=multi-user.target