diff --git a/systemd/rkt/ovh-rtm.service b/systemd/rkt/ovh-rtm.service new file mode 100644 index 0000000..6e5de3b --- /dev/null +++ b/systemd/rkt/ovh-rtm.service @@ -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