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/mv-core/runit-scripts-mv/runitscripts/services/ncidd | |
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/mv-core/runit-scripts-mv/runitscripts/services/ncidd')
-rw-r--r-- | abs/mv-core/runit-scripts-mv/runitscripts/services/ncidd/finish | 9 | ||||
-rwxr-xr-x | abs/mv-core/runit-scripts-mv/runitscripts/services/ncidd/run | 6 |
2 files changed, 14 insertions, 1 deletions
diff --git a/abs/mv-core/runit-scripts-mv/runitscripts/services/ncidd/finish b/abs/mv-core/runit-scripts-mv/runitscripts/services/ncidd/finish new file mode 100644 index 0000000..ab39d39 --- /dev/null +++ b/abs/mv-core/runit-scripts-mv/runitscripts/services/ncidd/finish @@ -0,0 +1,9 @@ +#!/bin/bash +exec 2>&1 +which ncidd 2>/dev/null >/dev/null +if [ ! $? = 0 ] +then + sv down ncid +fi + + diff --git a/abs/mv-core/runit-scripts-mv/runitscripts/services/ncidd/run b/abs/mv-core/runit-scripts-mv/runitscripts/services/ncidd/run index 6b032db..f1c710a 100755 --- a/abs/mv-core/runit-scripts-mv/runitscripts/services/ncidd/run +++ b/abs/mv-core/runit-scripts-mv/runitscripts/services/ncidd/run @@ -1,3 +1,7 @@ #!/bin/sh exec 2>&1 -exec /usr/sbin/ncidd -D 2>&1 +which ncidd > /dev/null 2>/dev/null +if [ $? = 0 ] +then + exec /usr/sbin/ncidd -D 2>&1 +fi |