Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (13 sloc) 425 Bytes
[Unit]
Description=Use runc to run %i
After=network.target
[Service]
Type=forking
ExecStart=/usr/local/sbin/runc start -d --pid-file /home/jessie/containers/%i/.pid %i
ExecStopPost=-/usr/local/sbin/runc delete %i
WorkingDirectory=/home/jessie/containers/%i
PIDFile=/home/jessie/containers/%i/.pid
# set delegate yes so that systemd does not reset the cgroups of containers
Delegate=yes
[Install]
WantedBy=multi-user.target