aboutsummaryrefslogtreecommitdiffstats
path: root/packages/p3scan-pf
diff options
context:
space:
mode:
authorDaniel Stefan Haischt <dsh@pfsense.org>2006-08-05 03:20:50 +0000
committerDaniel Stefan Haischt <dsh@pfsense.org>2006-08-05 03:20:50 +0000
commit23a910fa21d4399f14f48977e8927563814f518c (patch)
tree2681b0df40ca60585999cd4871f56986bb036008 /packages/p3scan-pf
parent9ffb62808c6b0dddcce57f66777c3d7236287ab5 (diff)
downloadpfsense-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.inc2
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;