summaryrefslogtreecommitdiffstats
path: root/debuginfofs.init
diff options
context:
space:
mode:
Diffstat (limited to 'debuginfofs.init')
-rwxr-xr-xdebuginfofs.init7
1 files changed, 3 insertions, 4 deletions
diff --git a/debuginfofs.init b/debuginfofs.init
index 3114e28..b77f17a 100755
--- a/debuginfofs.init
+++ b/debuginfofs.init
@@ -6,7 +6,6 @@
# Required-Stop: $local_fs $network $named $remote_fs $syslog
# Short-Description: Remote debuginfo filesystem
# Description: Mount a remote debuginfo filesystem for use with debugging tools
-#
### END INIT INFO
# debuginfofs This shell script takes care of mounting and unmounting the
@@ -47,7 +46,7 @@ start() {
-o intr $BUILDID_ARGS
RETVAL=$?
- [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
+ [ $RETVAL -eq 0 ] && touch /var/lock/subsys/debuginfofs
[ $RETVAL -eq 0 ] && success $"$prog startup" || failure $"$prog startup"
echo
return $RETVAL
@@ -57,7 +56,7 @@ stop() {
echo -n $"Stopping debuginfofs: "
fusermount -u "$BUILDID_MOUNTPOINT"
RETVAL=$?
- rm -f /var/lock/subsys/$prog
+ rm -f /var/lock/subsys/debuginfofs
[ $RETVAL -eq 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
echo
return $RETVAL
@@ -77,7 +76,7 @@ case "$1" in
RETVAL=$?
;;
condrestart)
- if [ -f /var/lock/subsys/$prog ]; then
+ if [ -f /var/lock/subsys/debuginfofs ]; then
stop
start
RETVAL=$?