Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Sunday 2008-02-17 at 21:54 -0700, Tom Patton wrote:
It's obvious that cupsd isn't running.
well, per her msg last night at 7:07pm...
"
well it's running
rccups status Checking for cupsd: running --
" so I guess it is running somewhere...
Now, I have doubts about that. Yesterday, my spamd daemon died suddenly, without saying a word, but "rcspamd status" reported "running". I guess it checks to see if it should be running, not that it is really running, perhaps by checking for the pid lock file.
The spamd code, that failed, is this:
status) echo -n "Checking for service spamd " ## Check status with checkproc(8), if process is running ## checkproc will return with exit status 0.
# Return value is slightly different for the status command: # 0 - service running # 1 - service dead, but /var/run/ pid file exists # 2 - service dead, but /var/lock/ lock file exists # 3 - service not running
# NOTE: checkproc returns LSB compliant status values. checkproc -p $PIDFILE $SPAMD_BIN rc_status -v ;;
and for cups is it the same code? Almost:
status) echo -n "Checking for cupsd: " ## Check status with checkproc(8), if process is running ## checkproc will return with exit status 0.
# Status has a slightly different for the status command: # 0 - service running # 1 - service dead, but /var/run/ pid file exists # 2 - service dead, but /var/lock/ lock file exists # 3 - service not running
# NOTE: checkproc returns LSB compliant status values. checkproc $CUPSD_BIN rc_status -v ;;
So... I think it should be running, but it wouldn't hurt to check if it is really so.
that's why I always advise using: $ ps -ef | grep command_name -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org