[lxc-users] Is my /etc/systemd/system/lxd.service correct ?

Pierre Couderc pierre at couderc.eu
Thu Jan 11 14:15:23 UTC 2018


I am installing lxd under debian stretch. Is my lxd.service correct ?

It is inspired from https://linuxcontainers.org/lxd/try-it/ but I do not 
understand everything :


root at debian:~# cat /etc/systemd/system/lxd.service
[Unit]
Description=LXD - main daemon
After=lxcfs.service
Requires=lxcfs.service

[Service]
EnvironmentFile=-/etc/environment
ExecStartPre=/usr/lib/x86_64-linux-gnu/lxc/lxc-apparmor-load
ExecStart=/usr/local/bin/lxd --group sudo --debug 
--logfile=/var/log/lxd/lxd.log
ExecStartPost=/usr/local/bin/lxd waitready --timeout=600
KillMode=process
TimeoutStartSec=600s
TimeoutStopSec=30s
Restart=on-failure
LimitNOFILE=1048576
LimitNPROC=infinity
TasksMax=infinity

[Install]
WantedBy=multi-user.target
Alias=lxd.service


Thanks for your comments.

PC




More information about the lxc-users mailing list