try and make the lock wrapper silent option actually silent

This commit is contained in:
Kevin Fenzi 2018-05-19 02:13:47 +00:00
parent f5e30686d1
commit 04bd0e1ea1

View file

@ -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