add initial systemd service file for binder.

tested running by submitting to 3-machine coreos etcd cluster
This commit is contained in:
Jeffrey Forman 2016-12-15 21:14:53 -05:00
parent 4df47c24fa
commit 89fb79517e
1 changed files with 15 additions and 0 deletions

15
binder@.service Normal file
View File

@ -0,0 +1,15 @@
[Unit]
Description=Docker BIND Admin
After=docker.service
Requires=docker.service
[Service]
TimeoutStartSec=20m
ExecStartPre=-/usr/bin/docker kill binder-%i
ExecStartPre=-/usr/bin/docker rm binder-%i
ExecStartPre=/usr/bin/docker pull jforman/binder
ExecStart=/usr/bin/docker run --rm --name binder-%i -p 8000:8000 jforman/binder
ExecStop=/usr/bin/docker stop binder-%i
[X-Fleet]
Conflicts=binder@*.service