diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-10-16 23:00:02 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-10-16 23:00:02 -0400 |
commit | 3d690e15b7ab7ed631c34d5391ba40d47cfb5759 (patch) | |
tree | cee1ade699d77e89595977961be4c2956a33b24d | |
parent | 70a8f6c7928af0dde738af126acd092a8173f85d (diff) | |
download | pfsense-packages-3d690e15b7ab7ed631c34d5391ba40d47cfb5759.tar.gz pfsense-packages-3d690e15b7ab7ed631c34d5391ba40d47cfb5759.tar.bz2 pfsense-packages-3d690e15b7ab7ed631c34d5391ba40d47cfb5759.zip |
Move killall and test for running anytermd
-rw-r--r-- | config/anyterm/anyterm.inc | 4 |
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 } |