diff options
Diffstat (limited to 'lxc.service')
-rw-r--r-- | lxc.service | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lxc.service b/lxc.service new file mode 100644 index 000000000000..6feb68006ec5 --- /dev/null +++ b/lxc.service @@ -0,0 +1,14 @@ +[Unit] +Description=%i LXC +After=network.target + +[Service] +Type=forking +ExecStart=/usr/bin/lxc-start -d -n %i -p /run/lxc-%i.pid +PIDFile=/run/lxc-%i.pid +ExecStop=/usr/bin/lxc-stop -n %i +Delegate=true +TasksMax=32768 + +[Install] +WantedBy=multi-user.target |