From ad32538bf7e22a19b6dd29121548ee5bfa06da8c Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Fri, 2 Oct 2015 13:05:53 +0000 Subject: runitscripts: change mythbackend, supplemental-slave, xymon-client, xymon-server run runit can't term any sudo manages processes since 1.8.14.p3 --- abs/core/runit-scripts/PKGBUILD | 2 +- abs/core/runit-scripts/runitscripts/services/mythbackend/run | 5 +++-- abs/core/runit-scripts/runitscripts/services/supplemental-slave/run | 2 +- abs/core/runit-scripts/runitscripts/services/xymon-client/run | 6 +----- abs/core/runit-scripts/runitscripts/services/xymon-server/run | 2 +- 5 files changed, 7 insertions(+), 10 deletions(-) diff --git a/abs/core/runit-scripts/PKGBUILD b/abs/core/runit-scripts/PKGBUILD index 151eb90..df20d62 100755 --- a/abs/core/runit-scripts/PKGBUILD +++ b/abs/core/runit-scripts/PKGBUILD @@ -1,6 +1,6 @@ pkgname=runit-scripts pkgver=8.3 -pkgrel=10 +pkgrel=11 pkgdesc="collection of startup scripts for runit" url="http://smarden.org/runit/" license="BSD" diff --git a/abs/core/runit-scripts/runitscripts/services/mythbackend/run b/abs/core/runit-scripts/runitscripts/services/mythbackend/run index d97cf21..6e42c12 100755 --- a/abs/core/runit-scripts/runitscripts/services/mythbackend/run +++ b/abs/core/runit-scripts/runitscripts/services/mythbackend/run @@ -79,5 +79,6 @@ export HOME=/root stat_runit "Starting Primary MythBackend" fi - exec sudo -u mythtv /usr/bin/mythbackend -q --syslog local6 -# fi + #exec sudo -u mythtv /usr/bin/mythbackend -q --syslog local6 + exec su mythtv -c "/usr/bin/mythbackend -q --syslog local6" +# fi diff --git a/abs/core/runit-scripts/runitscripts/services/supplemental-slave/run b/abs/core/runit-scripts/runitscripts/services/supplemental-slave/run index 5be390d..7c15210 100755 --- a/abs/core/runit-scripts/runitscripts/services/supplemental-slave/run +++ b/abs/core/runit-scripts/runitscripts/services/supplemental-slave/run @@ -8,4 +8,4 @@ MYTH_RUN_STATUS="1" . /etc/profile stat_runit "Starting supplemental web client" cd /data/srv/httpd/cgi -exec sudo -u http "./slaveserve.py" 2>/var/log/supplemental-slave.log +exec chpst -u http "./slaveserve.py" 2>/var/log/supplemental-slave.log diff --git a/abs/core/runit-scripts/runitscripts/services/xymon-client/run b/abs/core/runit-scripts/runitscripts/services/xymon-client/run index fcd5093..c18bf18 100644 --- a/abs/core/runit-scripts/runitscripts/services/xymon-client/run +++ b/abs/core/runit-scripts/runitscripts/services/xymon-client/run @@ -53,8 +53,4 @@ MACHINE="`echo $MACHINEDOTS | sed -e 's/\./,/g'`" export MACHINE -sudo -u nobody MACHINE=$MACHINE XYMONCLIENTHOME=$XYMONCLIENTHOME $XYMONCLIENTHOME/bin/xymonlaunch --config=$XYMONCLIENTHOME/etc/clientlaunch.cfg --log=$XYMONCLIENTHOME/logs/clientlaunch.log --pidfile=$XYMONCLIENTHOME/logs/clientlaunch.$MACHINEDOTS.pid --no-daemon - - - - +exec chpst -u nobody $XYMONCLIENTHOME/bin/xymonlaunch --config=$XYMONCLIENTHOME/etc/clientlaunch.cfg --log=$XYMONCLIENTHOME/logs/clientlaunch.log --pidfile=$XYMONCLIENTHOME/logs/clientlaunch.$MACHINEDOTS.pid --no-daemon diff --git a/abs/core/runit-scripts/runitscripts/services/xymon-server/run b/abs/core/runit-scripts/runitscripts/services/xymon-server/run index 6198543..c2053b1 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 /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 +exec chpst -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 -- cgit v0.12