puppet tool uses invoke-rc.d to determine if a service is launched at boot time. But at boot time, a variable RUNLEVEL is setup and invoke-rc.d doesn't work after that :
We can test :
RUNLEVEL=2 bash -x /usr/sbin/invoke-rc.d --quiet --query ssh start
-> we can see an exit 105
but :
bash -x /usr/sbin/invoke-rc.d --quiet --query ssh start
-> we can see an exit 104 (the good answer)
With debian lenny :
RUNLEVEL=2 bash -x /usr/sbin/invoke-rc.d --quiet --query ssh start
-> we can see an exit 104
Binary package hint: sysvinit
puppet tool uses invoke-rc.d to determine if a service is launched at boot time. But at boot time, a variable RUNLEVEL is setup and invoke-rc.d doesn't work after that : invoke- rc.d --quiet --query ssh start invoke- rc.d --quiet --query ssh start
We can test :
RUNLEVEL=2 bash -x /usr/sbin/
-> we can see an exit 105
but :
bash -x /usr/sbin/
-> we can see an exit 104 (the good answer)
With debian lenny : invoke- rc.d --quiet --query ssh start
RUNLEVEL=2 bash -x /usr/sbin/
-> we can see an exit 104