diff options
author | Daniel Stefan Haischt <dsh@pfsense.org> | 2006-08-05 03:20:50 +0000 |
---|---|---|
committer | Daniel Stefan Haischt <dsh@pfsense.org> | 2006-08-05 03:20:50 +0000 |
commit | 23a910fa21d4399f14f48977e8927563814f518c (patch) | |
tree | 2681b0df40ca60585999cd4871f56986bb036008 /packages/p3scan-pf | |
parent | 9ffb62808c6b0dddcce57f66777c3d7236287ab5 (diff) | |
download | pfsense-packages-23a910fa21d4399f14f48977e8927563814f518c.tar.gz pfsense-packages-23a910fa21d4399f14f48977e8927563814f518c.tar.bz2 pfsense-packages-23a910fa21d4399f14f48977e8927563814f518c.zip |
- fix: test whether /var/run/p3scan/p3scan.pid exists before starting the service and remove it if necessary.
Diffstat (limited to 'packages/p3scan-pf')
-rw-r--r-- | packages/p3scan-pf/p3scan-pf.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/p3scan-pf/p3scan-pf.inc b/packages/p3scan-pf/p3scan-pf.inc index 49906f6f..e35e8a36 100644 --- a/packages/p3scan-pf/p3scan-pf.inc +++ b/packages/p3scan-pf/p3scan-pf.inc @@ -310,6 +310,8 @@ EOD; } mwexec("/usr/local/etc/rc.d/030.p3scan.sh stop"); + /* test whether a pid file still exists and remove it if necessary */ + unlink_if_exists("/var/run/p3scan/p3scan.pid"); mwexec("/usr/local/etc/rc.d/030.p3scan.sh start"); return 0; |