blob: 566092b4bba24dcc006b6803714d853033a417a8 [file] [log] [blame]
[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