summaryrefslogtreecommitdiffstats
path: root/debuginfofs.init
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2009-02-26 14:15:18 -0500
committerWill Woods <wwoods@redhat.com>2009-02-26 14:15:18 -0500
commita9ca52d6cc8384ff1451f3f1064232189a589f2c (patch)
tree116cfebbed58926541710e1dfa5982535a90afa8 /debuginfofs.init
parent9ae511215ef856d1c5f54cbcb9b90e963a40c260 (diff)
downloaddebuginfofs-a9ca52d6cc8384ff1451f3f1064232189a589f2c.tar.gz
debuginfofs-a9ca52d6cc8384ff1451f3f1064232189a589f2c.tar.xz
debuginfofs-a9ca52d6cc8384ff1451f3f1064232189a589f2c.zip
Fix some rpmlint warnings/errors
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=$?