Package: rsyslog
Version: 5.7.4-2
Severity: normal

# /etc/init.d/rsyslog status
rsyslogd is running.
# echo $?
0
# /etc/init.d/rsyslog stop
Stopping enhanced syslogd: rsyslogd.
# echo $?
0

Ok, but:

# /etc/init.d/rsyslog status
could not access PID file for rsyslogd ... failed!
# echo $?
4
# ls -la /lib/init/rw/sendsigs.omit.d/rsyslog
lrwxrwxrwx 1 root root 21 Feb 28 14:48 /lib/init/rw/sendsigs.omit.d/rsyslog -> 
/var/run/rsyslogd.pid
# ls -la /var/run/rsyslogd.pid
ls: cannot access /var/run/rsyslogd.pid: No such file or directory

Hm? I'd expected to get exit code "3" instead:

| If the status action is requested, the init script will return the following 
exit status codes.
|
| 0   program is running or service is OK
| 1   program is dead and /var/run pid file exists
| 2   program is dead and /var/lock lock file exists
| 3   program is not running
| 4   program or service status is unknown

  -- 
http://refspecs.freestandards.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html

regards,
-mika-



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to