Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#20679 - scripts /etc/rc.d/ with pidof don't work with lxc
Attached to Project:
Arch Linux
Opened by Christian (Rastatux) - Monday, 30 August 2010, 17:22 GMT
Last edited by Andreas Radke (AndyRTR) - Monday, 30 August 2010, 17:54 GMT
Opened by Christian (Rastatux) - Monday, 30 August 2010, 17:22 GMT
Last edited by Andreas Radke (AndyRTR) - Monday, 30 August 2010, 17:54 GMT
|
DetailsDescription:
some scripts (cron, snmpd, ...) in /etc/rc.d/ use pidof for finding process pid. but with lxc, all lxc process are visible in the host. Additional info: lxc Linux Containers : http://lxc.sourceforge.net/ aur/lxc-git version: 0.7.2 Steps to reproduce: exemple in /etc/rc.d/crond : PID=$(pidof -o %PPID /usr/sbin/crond) when crond is running, pidof return only the good pid. but when crond is not running, this command return all pid of crond, including lxc process and crond can't start # lxc-ps faxu |grep crond root 5556 0.0 0.0 5944 708 ? Ss Aug28 0:01 /usr/sbin/crond -S -l info mx root 5112 0.0 0.0 5944 632 ? Ss Aug28 0:00 \_ /usr/sbin/crond -S -l info ns1 root 8470 0.0 0.0 5944 456 ? Ss Aug28 0:00 \_ /usr/sbin/crond -S -l info # echo $(pidof -o %PPID /usr/sbin/crond) 5556 # /etc/rc.d/crond stop :: Stopping Cron Daemon [DONE] # echo $(pidof -o %PPID /usr/sbin/crond) 8470 5112 # /etc/rc.d/crond start :: Stopping Cron Daemon [FAIL] Path attached : /etc/rc.d/functions.d/check_lxc_pid this script remove pid of lxc process, and all /etc/rc.d/ work fine. not fully tested. sorry for my bad english |
This task depends upon
Closed by Andreas Radke (AndyRTR)
Monday, 30 August 2010, 17:54 GMT
Reason for closing: Won't fix
Additional comments about closing: AUR packages are not supported in our repos. See bugtracker rules.
Monday, 30 August 2010, 17:54 GMT
Reason for closing: Won't fix
Additional comments about closing: AUR packages are not supported in our repos. See bugtracker rules.
check_lxc_pid