Hi all, Need some advice on the rc script infrastructure and the best way to detect running processes.
is some like the following acceptable practice or are there some existing functions that will do the equivalent. rc_pre() { pgrep -fq "${TRUEPREFIX}/bin/samba" if [[ $? == 0 ]]; then rc_err "$0: Cannot run while AD Server Running" fi } Secondly is it acceptable to create a common rc script to hold common subs used amongst multiple rc script for a port, eg samba.subr that will be used by smbd and nmbd rc scripts? Any thoughts / ideas appreciated. -- Ian McWilliam