]>
Commit | Line | Data |
---|---|---|
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] | |
5 | Description=PVE LXC Container: %i | |
6 | DefaultDependencies=No | |
545d6f0a WB |
7 | After=lxc.service |
8 | Wants=lxc.service | |
395139e2 FG |
9 | Documentation=man:lxc-start man:lxc man:pct |
10 | ||
11 | [Service] | |
545d6f0a | 12 | Type=simple |
96f6beab | 13 | Delegate=yes |
395139e2 FG |
14 | KillMode=mixed |
15 | TimeoutStopSec=120s | |
545d6f0a | 16 | ExecStart=/usr/bin/lxc-start -F -n %i |
395139e2 FG |
17 | ExecStop=/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 |
21 | StandardOutput=null | |
572efee1 | 22 | StandardError=file:/run/pve/ct-%i.stderr |