lock_wrapper: handle --silent with the argument passing
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
6a4dac866c
commit
73ba1900e6
1 changed files with 3 additions and 0 deletions
|
@ -11,8 +11,11 @@ SCRIPT=$2
|
|||
SILENT="no"
|
||||
if [ $# -ge 3 -a "$3" == "--silent" ]; then
|
||||
SILENT="yes"
|
||||
shift
|
||||
fi
|
||||
|
||||
shift 2
|
||||
|
||||
LOCKDIR="/var/tmp/$NAME"
|
||||
PIDFILE="$LOCKDIR/pid"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue