Example:
root@mei:~# /etc/init.d/ssh start  ; echo $?
Starting OpenBSD Secure Shell server: sshd.
0
root@mei:~# /etc/init.d/ssh status  ; echo $?
sshd is running.
0
root@mei:~# /etc/init.d/ssh stop  ; echo $?
Stopping OpenBSD Secure Shell server: sshd.
0
root@mei:~# /etc/init.d/ssh status  ; echo $?
could not access PID file for sshd ... failed!
4

This makes a bit of sense because without a PID file there is no way for
pidofproc()  in /lib/lsb/init-functions to know what process PID to look
for. In setting up a cluster I had to hack the init.d scripts to return
3 when status_of_proc was returning 4.

Bug # 494623 seems to have fixed this once.





-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to