summaryrefslogtreecommitdiffstats
path: root/src/usr/local/sbin
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-09-29 14:17:40 -0300
committerRenato Botelho <renato@netgate.com>2015-09-29 14:17:40 -0300
commit9f25db73c4ac6b86eb839f10e19a650185b41a0e (patch)
tree4b6943b56aa983fdfcdfe671fac647c1d9dba05b /src/usr/local/sbin
parentb6c72ae2c3c3d366e0dafe7337a8b2c4738df8ac (diff)
downloadpfsense-9f25db73c4ac6b86eb839f10e19a650185b41a0e.zip
pfsense-9f25db73c4ac6b86eb839f10e19a650185b41a0e.tar.gz
Call exit after detect another instance is already running, otherwise it would end up deleting pid file
Diffstat (limited to 'src/usr/local/sbin')
-rwxr-xr-xsrc/usr/local/sbin/pfSense-upgrade2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/sbin/pfSense-upgrade b/src/usr/local/sbin/pfSense-upgrade
index 9f22bd2..88e5cc9 100755
--- a/src/usr/local/sbin/pfSense-upgrade
+++ b/src/usr/local/sbin/pfSense-upgrade
@@ -421,7 +421,7 @@ done
if pgrep -qF ${pid_file} >/dev/null 2>&1; then
echo "Another instance is already running... Aborting!"
- _exit 1
+ exit 1
fi
echo $$ > ${pid_file}
OpenPOWER on IntegriCloud