diff options
author | Britney Fransen <brfransen@gmail.com> | 2015-10-02 13:05:53 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2015-10-02 13:05:53 (GMT) |
commit | ad32538bf7e22a19b6dd29121548ee5bfa06da8c (patch) | |
tree | 3b7b44d087173b2e9129339a351da9401cbbece3 | |
parent | f334e5d80b50663dc514f1a1c2596d5168bb9f33 (diff) | |
download | linhes_pkgbuild-ad32538bf7e22a19b6dd29121548ee5bfa06da8c.zip linhes_pkgbuild-ad32538bf7e22a19b6dd29121548ee5bfa06da8c.tar.gz linhes_pkgbuild-ad32538bf7e22a19b6dd29121548ee5bfa06da8c.tar.bz2 |
runitscripts: change mythbackend, supplemental-slave, xymon-client, xymon-server run
runit can't term any sudo manages processes since 1.8.14.p3
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 |