diff options
author | James Meyer <james.meyer@operamail.com> | 2008-12-05 19:17:48 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2008-12-05 19:17:48 (GMT) |
commit | 0cc1080dee0c081423deffca0884193011ea399b (patch) | |
tree | 138395cfe31c980d90211f692b77bda25fecdbd3 /abs/core-testing/runit-scripts/runitscripts/services/evrouter/finish | |
parent | 9c63001e5eb322bf73aed1541884027f422ff480 (diff) | |
download | linhes_pkgbuild-0cc1080dee0c081423deffca0884193011ea399b.zip linhes_pkgbuild-0cc1080dee0c081423deffca0884193011ea399b.tar.gz linhes_pkgbuild-0cc1080dee0c081423deffca0884193011ea399b.tar.bz2 |
add better error checking for the init scripts ncidd/xvfb/evrouter
Diffstat (limited to 'abs/core-testing/runit-scripts/runitscripts/services/evrouter/finish')
-rwxr-xr-x | abs/core-testing/runit-scripts/runitscripts/services/evrouter/finish | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/abs/core-testing/runit-scripts/runitscripts/services/evrouter/finish b/abs/core-testing/runit-scripts/runitscripts/services/evrouter/finish index 0dd33de..5ebda4c 100755 --- a/abs/core-testing/runit-scripts/runitscripts/services/evrouter/finish +++ b/abs/core-testing/runit-scripts/runitscripts/services/evrouter/finish @@ -1,4 +1,10 @@ #!/bin/bash . /etc/profile -DISPLAY=localhost:50 evrouter -q -rm -rf /tmp/.evrouter* +which evrouter >/dev/null 2>/dev/null +if [ $? = 0 ] +then + DISPLAY=localhost:50 evrouter -q + rm -rf /tmp/.evrouter* +else + sv down evrouter +fi
\ No newline at end of file |