From fa73767d19ea505ec32533b8856122968207db2f Mon Sep 17 00:00:00 2001 From: Anton Fiuman Date: Sun, 25 May 2008 00:55:56 +0200 Subject: Allow users to ovverride daemon start and stop in rc.multi and rc.shutdown Signed-off-by: Anton Fiuman --- functions | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'functions') diff --git a/functions b/functions index 63999a1..6be008f 100644 --- a/functions +++ b/functions @@ -151,6 +151,19 @@ ck_depends() { done } +start_daemon() { + /etc/rc.d/$1 start +} + +start_daemon_bkgd() { + stat_bkgd "Starting $1" + (/etc/rc.d/$1 start) &>/dev/null & +} + +stop_daemon() { + /etc/rc.d/$1 stop +} + #Source additional functions at the end to allow overrides if [ -d /etc/rc.d/functions.d/ ]; then for f in $(/bin/ls /etc/rc.d/functions.d/); do -- cgit v1.2.3