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