]> git.proxmox.com Git - pve-container.git/blame - src/pve-container@.service
add setup_systemd_preset helper, disable networkd for debian 12+
[pve-container.git] / src / pve-container@.service
CommitLineData
545d6f0a 1# based on lxc@.service, but without an install section because
395139e2
FG
2# starting and stopping should be initiated by PVE code, not
3# systemd.
4[Unit]
5Description=PVE LXC Container: %i
6DefaultDependencies=No
545d6f0a
WB
7After=lxc.service
8Wants=lxc.service
395139e2
FG
9Documentation=man:lxc-start man:lxc man:pct
10
11[Service]
545d6f0a 12Type=simple
96f6beab 13Delegate=yes
395139e2
FG
14KillMode=mixed
15TimeoutStopSec=120s
545d6f0a 16ExecStart=/usr/bin/lxc-start -F -n %i
395139e2
FG
17ExecStop=/usr/share/lxc/pve-container-stop-wrapper %i
18# Environment=BOOTUP=serial
19# Environment=CONSOLETYPE=serial
545d6f0a
WB
20# Prevent container init from putting all its output into the journal
21StandardOutput=null
572efee1 22StandardError=file:/run/pve/ct-%i.stderr