aboutsummaryrefslogtreecommitdiffstats
path: root/config/anyterm
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-10-16 23:00:02 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-10-16 23:00:02 -0400
commit3d690e15b7ab7ed631c34d5391ba40d47cfb5759 (patch)
treecee1ade699d77e89595977961be4c2956a33b24d /config/anyterm
parent70a8f6c7928af0dde738af126acd092a8173f85d (diff)
downloadpfsense-packages-3d690e15b7ab7ed631c34d5391ba40d47cfb5759.tar.gz
pfsense-packages-3d690e15b7ab7ed631c34d5391ba40d47cfb5759.tar.bz2
pfsense-packages-3d690e15b7ab7ed631c34d5391ba40d47cfb5759.zip
Move killall and test for running anytermd
Diffstat (limited to 'config/anyterm')
-rw-r--r--config/anyterm/anyterm.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/anyterm/anyterm.inc b/config/anyterm/anyterm.inc
index ad292a0c..bc5de576 100644
--- a/config/anyterm/anyterm.inc
+++ b/config/anyterm/anyterm.inc
@@ -72,9 +72,11 @@ load_rc_config \$name
anyterm_start () {
if [ -f /var/etc/anyterm.conf ]; then
+ if [ `ps awux | grep -v grep | grep anytermd | wc -l` -gt 0 ]; then
+ killall anytermd
+ fi
/usr/bin/env \
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
- killall anytermd \
$anytermd_command
fi
}