diff options
Diffstat (limited to 'abs/core/runit-scripts/runitscripts/services')
7 files changed, 37 insertions, 3 deletions
diff --git a/abs/core/runit-scripts/runitscripts/services/dbus/run b/abs/core/runit-scripts/runitscripts/services/dbus/run index a9af150..af6ebbb 100755 --- a/abs/core/runit-scripts/runitscripts/services/dbus/run +++ b/abs/core/runit-scripts/runitscripts/services/dbus/run @@ -4,6 +4,10 @@ export TERM=linux . /etc/rc.conf . /etc/rc.d/functions stat_runit "Starting dbus" +if [[ ! -d /run/dbus ]] +then + install -m755 -g 81 -o 81 -d /run/dbus +fi exec /usr/bin/dbus-daemon --system --nofork 2>/dev/null >/dev/null diff --git a/abs/core/runit-scripts/runitscripts/services/frontend/log/run b/abs/core/runit-scripts/runitscripts/services/frontend/log/run index 463045f..801eaf2 100755 --- a/abs/core/runit-scripts/runitscripts/services/frontend/log/run +++ b/abs/core/runit-scripts/runitscripts/services/frontend/log/run @@ -1,5 +1,5 @@ #!/bin/sh exec 2>&1 . /etc/systemconfig - /usr/bin/logger -p local6.info -t mythfrontend + /usr/bin/logger -p local6.info -t frontend diff --git a/abs/core/runit-scripts/runitscripts/services/msg_daemon/run b/abs/core/runit-scripts/runitscripts/services/msg_daemon/run new file mode 100755 index 0000000..b544550 --- /dev/null +++ b/abs/core/runit-scripts/runitscripts/services/msg_daemon/run @@ -0,0 +1,7 @@ +#!/bin/sh +export TERM=linux +. /etc/rc.conf +. /etc/rc.d/functions +. /etc/profile +stat_runit "Starting osd message daemon" +exec /usr/LH/bin/msg_daemon.py diff --git a/abs/core/runit-scripts/runitscripts/services/vnc/finish b/abs/core/runit-scripts/runitscripts/services/vnc/finish new file mode 100755 index 0000000..243488c --- /dev/null +++ b/abs/core/runit-scripts/runitscripts/services/vnc/finish @@ -0,0 +1,9 @@ +#!/bin/sh +#set -x +exec 2>&1 +export TERM=linux +. /etc/rc.conf +. /etc/rc.d/functions +stat_runit "Stopping vnc service" +rm -f /etc/avahi/services/vnc.service 2>/dev/null +su vncsvc -c "vncserver -kill :1" diff --git a/abs/core/runit-scripts/runitscripts/services/vnc/run b/abs/core/runit-scripts/runitscripts/services/vnc/run new file mode 100755 index 0000000..af53139 --- /dev/null +++ b/abs/core/runit-scripts/runitscripts/services/vnc/run @@ -0,0 +1,14 @@ +#!/bin/sh +#set -x +exec 2>&1 +export TERM=linux +MYTH_RUN_STATUS="1" +. /etc/rc.conf +. /etc/rc.d/functions +. /etc/profile +stat_runit "Starting vnc service" +geometry=1024x768 +#. /etc/conf.d/vncserver 2>/dev/null +cp -f $MV_ROOT/templates/vnc.service /etc/avahi/services/vnc.service 2>/dev/null +exec su vncsvc -c "/usr/bin/vncserver -fg -geometry $geometry :1" 2>/var/log/vnc.log + diff --git a/abs/core/runit-scripts/runitscripts/services/xymon-client/run b/abs/core/runit-scripts/runitscripts/services/xymon-client/run index a454c6b..fcd5093 100644 --- a/abs/core/runit-scripts/runitscripts/services/xymon-client/run +++ b/abs/core/runit-scripts/runitscripts/services/xymon-client/run @@ -46,7 +46,7 @@ do done XYMONCLIENTHOME="`dirname $0`" -XYMONCLIENTHOME="/data/srv/xymon/client" +XYMONCLIENTHOME="/home/xymon/client" export MACHINEDOTS SERVEROSTYPE XYMONOSSCRIPT XYMONCLIENTHOME CONFIGCLASS MACHINE="`echo $MACHINEDOTS | sed -e 's/\./,/g'`" diff --git a/abs/core/runit-scripts/runitscripts/services/xymon-server/run b/abs/core/runit-scripts/runitscripts/services/xymon-server/run index b850c0a..6198543 100644 --- a/abs/core/runit-scripts/runitscripts/services/xymon-server/run +++ b/abs/core/runit-scripts/runitscripts/services/xymon-server/run @@ -6,4 +6,4 @@ export TERM=linux stat_runit "Starting xymon server" -exec sudo -u nobody /data/srv/xymon/server/bin/xymonlaunch --config=/data/srv/xymon/server/etc/tasks.cfg --env=/data/srv/xymon/server/etc/xymonserver.cfg --log=/var/log/hobbit/xymonlaunch.log --pidfile=/var/log/hobbit/xymonlaunch.pid --no-daemon +exec sudo -u nobody /home/xymon/server/bin/xymonlaunch --config=/home/xymon/server/etc/tasks.cfg --env=/home/xymon/server/etc/xymonserver.cfg --log=/var/log/hobbit/xymonlaunch.log --pidfile=/var/log/hobbit/xymonlaunch.pid --no-daemon |