aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorAnton Fiuman <llexiw@gmail.com>2008-05-25 00:55:56 +0200
committerThomas Bächler <thomas@archlinux.org>2008-05-27 16:27:20 +0200
commitfa73767d19ea505ec32533b8856122968207db2f (patch)
tree0d9695f3a40b86b29076719029a5b14578927e23 /functions
parent63db98c2a8e256f9219c5c6501b40846040bf089 (diff)
downloadinitscripts-fa73767d19ea505ec32533b8856122968207db2f.tar.xz
Allow users to ovverride daemon start and stop in rc.multi and rc.shutdown
Signed-off-by: Anton Fiuman <llexiw@gmail.com>
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