FS#5721 - implement status option in rc.d scripts
Attached to Project:
Arch Linux
Opened by Roman Kyrylych (Romashka) - Tuesday, 31 October 2006, 13:17 GMT
Last edited by Allan McRae (Allan) - Friday, 13 March 2009, 04:19 GMT
Opened by Roman Kyrylych (Romashka) - Tuesday, 31 October 2006, 13:17 GMT
Last edited by Allan McRae (Allan) - Friday, 13 March 2009, 04:19 GMT
|
Details
Currently there is support for daemon status function in
/etc/rc.d/functions - function ck_daemon() but I didn't see
a rc.d script which support status option. IMHO it's useful,
so why not to add it? But what message convention to use?
"RUNNING"/"STOPPED" or what?
|
This task depends upon
Closed by Allan McRae (Allan)
Friday, 13 March 2009, 04:19 GMT
Reason for closing: Implemented
Additional comments about closing: See final comment
Friday, 13 March 2009, 04:19 GMT
Reason for closing: Implemented
Additional comments about closing: See final comment
function-status.diff (0.8 KiB)
PS While we're changing the rc.d prototype, usage of "source_functions" would be helpful (it sources the functions.d dir)
- ABS provides an rc-script prototype
- Adding source_functions to it will no longer be needed because /etc/rc.d/functions in initscripts git repo does this automatically
- The functions for printing status information have not been added to /etc/rc.d/functions yet. Once this is done, the status option can be added to the abs rc-script prototype
http://phraktured.net/status-functions.patch
Is this ok with you all?
http://projects.archlinux.org/?p=initscripts.git;a=commitdiff;h=ad81ddafabd95ee1ea7169880a6a80f04babf9a6
Closing in favour of
FS#4688