Hi Reco, wrt "pgrep --ns 1 -f /usr/sbin/sshd":
The executable path simply doesn't tell if this is the right service to stop. If I run 2 services in parallel (e.g. for different network interfaces), then this approach is already broken. Sample: # pgrep --ns 1 -f /usr/sbin/sshd 12602 # ps -ef | grep ssh[d] root 12602 1 0 Feb02 ? 00:00:20 /usr/sbin/sshd -D # /usr/sbin/sshd -p 2222 # pgrep --ns 1 -f /usr/sbin/sshd 1933 12602 IMHO pidofproc (and hence the startup scripts) should rely upon not loosing important information (the pid file). Regards Harri