diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2008-02-05 08:52:32 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2008-02-05 08:52:32 +0800 |
commit | e207fe4cb56632d7d2027d3e53953147af39bd4a (patch) | |
tree | b9b153bc1ae0e162144b54bcc29758ff3a94e402 /sysutils | |
parent | 27c03a13653107b693185975ab6f14c7138b5880 (diff) | |
download | marcuscom-ports-e207fe4cb56632d7d2027d3e53953147af39bd4a.tar marcuscom-ports-e207fe4cb56632d7d2027d3e53953147af39bd4a.tar.gz marcuscom-ports-e207fe4cb56632d7d2027d3e53953147af39bd4a.tar.bz2 marcuscom-ports-e207fe4cb56632d7d2027d3e53953147af39bd4a.tar.lz marcuscom-ports-e207fe4cb56632d7d2027d3e53953147af39bd4a.tar.xz marcuscom-ports-e207fe4cb56632d7d2027d3e53953147af39bd4a.tar.zst marcuscom-ports-e207fe4cb56632d7d2027d3e53953147af39bd4a.zip |
hald also needs the vty-checker.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@10343 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/hal/Makefile | 4 | ||||
-rw-r--r-- | sysutils/hal/files/hald.in | 19 |
2 files changed, 21 insertions, 2 deletions
diff --git a/sysutils/hal/Makefile b/sysutils/hal/Makefile index 1c7c17576..f6be90251 100644 --- a/sysutils/hal/Makefile +++ b/sysutils/hal/Makefile @@ -3,12 +3,12 @@ # Whom: Joe Marcus Clarke <marcus@FreeBSD.org> # # $FreeBSD$ -# $MCom: ports/sysutils/hal/Makefile,v 1.31 2008/01/19 21:29:24 marcus Exp $ +# $MCom: ports/sysutils/hal/Makefile,v 1.32 2008/01/23 20:56:13 marcus Exp $ # PORTNAME= hal PORTVERSION= ${HALVERSION}.${SNAPVERSION} -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= sysutils MASTER_SITES= http://www.marcuscom.com/downloads/ diff --git a/sysutils/hal/files/hald.in b/sysutils/hal/files/hald.in index fc80a5a6b..825294725 100644 --- a/sysutils/hal/files/hald.in +++ b/sysutils/hal/files/hald.in @@ -24,6 +24,7 @@ pidfile="/var/run/${name}/${name}.pid" stop_postcmd="hald_postcmd" start_precmd="hald_precmd" +start_cmd="hald_start" local_force_depend() { @@ -54,5 +55,23 @@ hald_postcmd() rm -f $pidfile } +hald_start() +{ + if ! checkyesno hald_enable ; then + return 0 + fi + echo "Starting ${name}." + + ( iter=0 + while ! /usr/local/bin/vty-checker ; do + if [ ${iter} -eq 60 ]; then + break + fi + sleep 1 + iter=$(expr ${iter} + 1) + done + ${command} ${hald_flags} ) & +} + load_rc_config ${name} run_rc_command "$1" |