1
0
mirror of https://bitbucket.org/shim_/docker-rtm.git synced 2018-10-04 01:52:08 +02:00

include systemd service file

This commit is contained in:
shim_ 2018-05-11 18:42:48 +02:00
parent 878a9cd019
commit c397780a58

View File

@ -0,0 +1,26 @@
[Unit]
Documentation=https://hub.docker.com/r/shimun/ovh-rtm/
Requires=network-online.target
[Service]
Slice=machine.slice
Delegate=true
CPUShares=256
MemoryLimit=128M
Environment=RTM_HIDE_PROCESSES=1
Environment=RTM_HIDE_CONNECTIONS=1
Environment=RTM_REPORT_INTERVAL=60
ExecStart=/usr/bin/rkt --insecure-options=image run --stage1-name=coreos.com/rkt/stage1-fly:1.8.0 \
--volume resolv,kind=host,source=/etc/resolv.conf,readOnly=true \
--volume proc,kind=host,source=/proc \
--volume volume-cache,kind=host,source=/tmp docker://shimun/ovh-rtm \
--mount volume=resolv,target=/etc/resolv.conf --mount volume=proc,target=/proc
ExecStopPost=/usr/bin/rkt gc
KillMode=mixed
Restart=always
RestartSec=30
[Install]
WantedBy=multi-user.target