From 3d690e15b7ab7ed631c34d5391ba40d47cfb5759 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 16 Oct 2009 23:00:02 -0400 Subject: Move killall and test for running anytermd --- config/anyterm/anyterm.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 } -- cgit v1.2.3