mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2026-03-28 06:08:06 +00:00
lxc-start started to default to daemonize the container when starting this conflicts with type=simple of the systemd unit call lxc-start with -F and thus force execution in foreground that way we can feed the log to journald properly and keep type=simple Debian-Bug: https://bugs.debian.org/826100 Signed-off-by: Evgeni Golov <evgeni@golov.de>
21 lines
387 B
SYSTEMD
21 lines
387 B
SYSTEMD
[Unit]
|
|
Description=LXC Container: %i
|
|
# This pulls in apparmor, dev-setup, lxc-net
|
|
After=lxc.service
|
|
Wants=lxc.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
KillMode=mixed
|
|
KillSignal=SIGPWR
|
|
TimeoutStopSec=120s
|
|
ExecStart=@BINDIR@/lxc-start -F -n %i
|
|
# Environment=BOOTUP=serial
|
|
# Environment=CONSOLETYPE=serial
|
|
Delegate=yes
|
|
StandardOutput=syslog
|
|
StandardError=syslog
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|