summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runitscripts
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2011-09-01 15:06:57 (GMT)
committerJames Meyer <james.meyer@operamail.com>2011-09-01 15:06:57 (GMT)
commit1b9906de1e3b06d1c6442361200f8b1348c66152 (patch)
tree82b3f7ffb1854d54f50b5cb541d981a344cffd24 /abs/core/runit-scripts/runitscripts
parentf53cccacbb7bed54f4cbba8021bc41b75a6e2e4e (diff)
downloadlinhes_pkgbuild-1b9906de1e3b06d1c6442361200f8b1348c66152.zip
linhes_pkgbuild-1b9906de1e3b06d1c6442361200f8b1348c66152.tar.gz
linhes_pkgbuild-1b9906de1e3b06d1c6442361200f8b1348c66152.tar.bz2
runit-scripts: Defined new print procedure for runit to use.
Convert some scripts to use the new printhlr procedure. Cleanup of a couple scripts to stop spewing crap on the console.
Diffstat (limited to 'abs/core/runit-scripts/runitscripts')
-rwxr-xr-xabs/core/runit-scripts/runitscripts/37
-rwxr-xr-xabs/core/runit-scripts/runitscripts/services/lircd/run3
-rwxr-xr-xabs/core/runit-scripts/runitscripts/services/netfs/run3
-rwxr-xr-xabs/core/runit-scripts/runitscripts/services/nfs-common/run12
4 files changed, 17 insertions, 8 deletions
diff --git a/abs/core/runit-scripts/runitscripts/3 b/abs/core/runit-scripts/runitscripts/3
index d4b0a6a..15e4c5f 100755
--- a/abs/core/runit-scripts/runitscripts/3
+++ b/abs/core/runit-scripts/runitscripts/3
@@ -1,5 +1,10 @@
#!/bin/sh
-for i in `seq 30`
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+echo "======================================================================"
+for i in `seq 3`
do
echo " " > /dev/tty1
done
diff --git a/abs/core/runit-scripts/runitscripts/services/lircd/run b/abs/core/runit-scripts/runitscripts/services/lircd/run
index f8f24c1..966b980 100755
--- a/abs/core/runit-scripts/runitscripts/services/lircd/run
+++ b/abs/core/runit-scripts/runitscripts/services/lircd/run
@@ -31,7 +31,8 @@ else
stat_runit "Starting lirc"
#enable lirc bridge protocol
- /usr/bin/ir-keytable -p lirc &
+ printhl " lirc: ir-keytable"
+ /usr/bin/ir-keytable -p lirc > /dev/null 2>/dev/null
[ -e /etc/sv/lircd/.runtime ] || mkdir -p /etc/sv/lircd/.runtime
[ -e /var/run/lirc ] || mkdir -p /var/run/lirc
diff --git a/abs/core/runit-scripts/runitscripts/services/netfs/run b/abs/core/runit-scripts/runitscripts/services/netfs/run
index 8b6a8b1..06180c2 100755
--- a/abs/core/runit-scripts/runitscripts/services/netfs/run
+++ b/abs/core/runit-scripts/runitscripts/services/netfs/run
@@ -1,6 +1,7 @@
#!/bin/sh
exec 2>&1
+exec 1>/dev/null
sv start rpcbind
-sv start nfs-common
+sv start nfs-common
/etc/rc.d/netfs start
diff --git a/abs/core/runit-scripts/runitscripts/services/nfs-common/run b/abs/core/runit-scripts/runitscripts/services/nfs-common/run
index bf6c2a1..f0dbb6e 100755
--- a/abs/core/runit-scripts/runitscripts/services/nfs-common/run
+++ b/abs/core/runit-scripts/runitscripts/services/nfs-common/run
@@ -62,20 +62,22 @@ get_pid() {
-stat_runit "Starting $daemon_name"
+stat_runit "Starting NFS-common: $daemon_name"
svwaitup rpcbind >/dev/null 2>/dev/null
-/usr/sbin/sm-notify $SMNOTIFY_OPTS
+
+printhl " NFS-common: sm-notify"
+/usr/sbin/sm-notify $SMNOTIFY_OPTS >/dev/null 2>/dev/null
do_modprobe sunrpc
do_modprobe nfs
do_modprobe nfsd
do_mount rpc_pipefs "$PIPEFS_MOUNTPOINT" "$PIPEFS_MOUNTOPTS"
-stat_runit "Starting $IDMAPD_DAEMON_NAME"
+printhl " NFS-common: $IDMAPD_DAEMON_NAME"
$IDMAPD
-stat_runit "Starting $GSSD_DAEMON_NAME"
+printhl " NFS-common: $GSSD_DAEMON_NAME"
do_modprobe rpcsec_gss_krb5
$GSSD
-$STATD -F
+$STATD -F > /dev/null 2>/dev/null