diff options
author | Renato Botelho <renato@netgate.com> | 2015-09-29 14:17:40 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-09-29 14:17:40 -0300 |
commit | 9f25db73c4ac6b86eb839f10e19a650185b41a0e (patch) | |
tree | 4b6943b56aa983fdfcdfe671fac647c1d9dba05b /src | |
parent | b6c72ae2c3c3d366e0dafe7337a8b2c4738df8ac (diff) | |
download | pfsense-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')
-rwxr-xr-x | src/usr/local/sbin/pfSense-upgrade | 2 |
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} |