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)
|
RESTORE_UMASK=$(umask -p)
|
||||||
umask 0077
|
umask 0077
|
||||||
if ! mkdir "$LOCKDIR"; then
|
mkdir "$LOCKDIR" >& /dev/null
|
||||||
echo "$LOCKDIR already exists"
|
if [ $? != 0 ]; then
|
||||||
PID=$(cat "$PIDFILE")
|
PID=$(cat "$PIDFILE")
|
||||||
if [ -n "$PID" ] && /bin/ps $PID > /dev/null
|
if [ -n "$PID" ] && /bin/ps $PID > /dev/null
|
||||||
then
|
then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue