aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rw-r--r--functions13
1 files changed, 13 insertions, 0 deletions
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