The attached small diff file adds a proper status() function to runscripts.sh which contains the core code which drives the /etc/init.d/* rc scripts This allows anyone to code a status() function in their rc script which can display status information specific to the application in addition to the simple "started/stopped" status that is displayed currently. To see this in operation, apply the patch to /sbin/runscripts.sh and then execute '/etc/init.d/autofs status' - assuming you have autofs installed. The autofs rc script already contains a status() function, but unfortunatly it is bypassed by the existing runscripts.sh The runscript.sh file is in sys-apps/baselayout I am hoping to also provide a patch which will create suse-like rc symlinks in /usr/sbin to make manipulating services easier
Created attachment 828 [details, diff] context diff of /sbin/runscript.sh
Added something to this extend to CVS.