try and make the lock wrapper silent option actually silent
This commit is contained in:
parent
f5e30686d1
commit
04bd0e1ea1
1 changed files with 2 additions and 2 deletions
|
@ -22,8 +22,8 @@ function cleanup {
|
|||
|
||||
RESTORE_UMASK=$(umask -p)
|
||||
umask 0077
|
||||
if ! mkdir "$LOCKDIR"; then
|
||||
echo "$LOCKDIR already exists"
|
||||
mkdir "$LOCKDIR" >& /dev/null
|
||||
if [ $? != 0 ]; then
|
||||
PID=$(cat "$PIDFILE")
|
||||
if [ -n "$PID" ] && /bin/ps $PID > /dev/null
|
||||
then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue