aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Lautrbach <plautrba@redhat.com>2009-11-23 15:40:06 +0100
committerBill Nottingham <notting@redhat.com>2009-12-03 14:38:31 -0500
commit33d49ab72866afc3e68b3b53f38f7b696762f487 (patch)
tree1ba8a05f867499bb572ec43a5d151d3ff70dc04b
parentdac32879b0de17d721457801fac65604f937ef00 (diff)
downloadinitscripts-33d49ab72866afc3e68b3b53f38f7b696762f487.tar
initscripts-33d49ab72866afc3e68b3b53f38f7b696762f487.tar.gz
initscripts-33d49ab72866afc3e68b3b53f38f7b696762f487.tar.bz2
initscripts-33d49ab72866afc3e68b3b53f38f7b696762f487.tar.xz
initscripts-33d49ab72866afc3e68b3b53f38f7b696762f487.zip
fixed usage of initctl emit in /etc/rc
-rwxr-xr-xrc.d/rc8
1 files changed, 4 insertions, 4 deletions
diff --git a/rc.d/rc b/rc.d/rc
index d918b7c7..73d266ab 100755
--- a/rc.d/rc
+++ b/rc.d/rc
@@ -65,9 +65,9 @@ for i in /etc/rc$runlevel.d/K* ; do
check_runlevel "$i" || continue
# Bring the subsystem down.
- [ -n "$UPSTART" ] && initctl emit --quiet stopping $subsys
+ [ -n "$UPSTART" ] && initctl emit --quiet stopping JOB=$subsys
$i stop
- [ -n "$UPSTART" ] && initctl emit --quiet stopped $subsys
+ [ -n "$UPSTART" ] && initctl emit --quiet stopped JOB=$subsys
done
# Now run the START scripts.
@@ -92,13 +92,13 @@ for i in /etc/rc$runlevel.d/S* ; do
update_boot_stage "$subsys"
# Bring the subsystem up.
- [ -n "$UPSTART" ] && initctl emit --quiet starting $subsys
+ [ -n "$UPSTART" ] && initctl emit --quiet starting JOB=$subsys
if [ "$subsys" = "halt" -o "$subsys" = "reboot" ]; then
export LC_ALL=C
exec $i start
fi
$i start
- [ -n "$UPSTART" ] && initctl emit --quiet started $subsys
+ [ -n "$UPSTART" ] && initctl emit --quiet started JOB=$subsys
done
[ "$do_confirm" = "yes" ] && rm -f /var/run/confirm
exit 0