]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/start.c
Add a new logger: syslog and Print the VM name in the logs
authorBaptiste Daroussin <bapt@gandi.net>
Fri, 8 Jul 2016 09:35:11 +0000 (11:35 +0200)
committerBaptiste Daroussin <bapt@gandi.net>
Fri, 29 Jul 2016 21:31:48 +0000 (23:31 +0200)
commit64c57ea1579b1832f65ffa41923ae146bb97a213
tree6aebc9af84d2ca105bbd48b8ff80814a65f83c4e
parent11b09c7afffe81a2030777a863700f0fae1307a3
Add a new logger: syslog and Print the VM name in the logs

To activate it specify lxc.syslog = <afacility>
For now the available facilities are: daemon, local[0-7] others will be
rejected

syslog got only activated after the function that checks for inheritance
of fd is passed in order to make sure the syslog fd is not inherited
and prevent the creation of the fd is any log have been issued during
the checks (which would end up in an infinite loop)

Signed-off-by: Fatih ACAR <fatih.acar@gandi.net>
Signed-off-by: Ahmed Amamou <ahmed@gandi.net>
Signed-off-by: Baptiste Daroussin <bapt@gandi.net>
Signed-off-by: William Dauchy <william@gandi.net>
src/lxc/confile.c
src/lxc/log.c
src/lxc/log.h
src/lxc/start.c