redmine

Do not collect ipw instances on lockfile

Showing 1 changed file with 5 additions and 0 deletions
... ... @@ -22,6 +22,11 @@ DEFAULT_BONDING_MODE='balance-tlb'
modprobe bonding
if lockfile-check /run/ipw; then
eerror 'Another "ipw" instance is already running'
exit -1
fi
trap 'lockfile-remove /run/ipw' SIGINT SIGTERM SIGHUP SIGQUIT SIGALRM SIGILL SIGABRT SIGPIPE EXIT
lockfile-create /run/ipw || exit
... ...