Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 11072 Details for
Bug 19883
Improvements to the svc_status() function within /sbin/runscript.sh
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
new svc_status() function for /sbin/runscript.sh
svc_status.txt (text/plain), 826 bytes, created by
Marc Jauvin
on 2003-04-24 10:34:55 UTC
(
hide
)
Description:
new svc_status() function for /sbin/runscript.sh
Filename:
MIME Type:
Creator:
Marc Jauvin
Created:
2003-04-24 10:34:55 UTC
Size:
826 bytes
patch
obsolete
>svc_status() { > # The basic idea here is to have some sort of consistant > # output in the status() function which scripts can use > # as an generic means to detect status. Any other output > # should thus be formatted in the custom status() function > # to work with the printed " * status: foo". > > pid=`pidof -o $$ -o $PPID -o %PPID -x ${myservice}` > if [ "$pid" != "" ] ; then > if [ "${RC_QUIET_STDOUT}" != "yes" ]; then > einfo "status: started (pid $pid)" > else > return 0 > fi > elif [ -f /var/run/${myservice}.pid -o -f /var/run/${myservice}/${myservice}.pid ] ; then > if [ "${RC_QUIET_STDOUT}" != "yes" ]; then > eerror "status: dead but pid file exists" > else > return 1 > fi > else > if [ "${RC_QUIET_STDOUT}" != "yes" ]; then > eerror "status: is stopped" > else > return 2 > fi > fi > > status >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 19883
: 11072