summaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-03-11 15:00:16 +0000
committerRoy Marples <roy@marples.name>2008-03-11 15:00:16 +0000
commit40e12f6ba026af9c24d5c3d8e36512719ed5faee (patch)
tree06251344538a482a801e8750a3a0068ef5f5594a /sh
parent568ec5f343912f4b63a2db769da68e842a239ae5 (diff)
downloadopenrc-40e12f6ba026af9c24d5c3d8e36512719ed5faee.tar.gz
openrc-40e12f6ba026af9c24d5c3d8e36512719ed5faee.tar.bz2
openrc-40e12f6ba026af9c24d5c3d8e36512719ed5faee.tar.xz
RC_SERVICE now points to the service file, so daemons can recall us directly.
Diffstat (limited to 'sh')
-rw-r--r--sh/runscript.sh.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/sh/runscript.sh.in b/sh/runscript.sh.in
index 88e99bd..be69bb9 100644
--- a/sh/runscript.sh.in
+++ b/sh/runscript.sh.in
@@ -18,6 +18,9 @@ if [ -z "$1" -o -z "$2" ]; then
exit 1
fi
+# So daemons know where to recall us if needed
+export RC_SERVICE="$1"
+
# Descript the init script to the user
describe()
{