[buildd-tools-devel] [PATCH 1/2] Make NO-DAEMON-PLEASE work with home in /var/lib/buildd
Sebastian Andrzej Siewior
sebastian at breakpoint.cc
Mon Jun 27 20:19:31 UTC 2011
buildd's home moved "recently" from /home/ to /var/lib. The init script was
not updated.
While in here, add a space after the name so the warning message is not
squeezed.
Signed-off-by: Sebastian Andrzej Siewior <sebastian at breakpoint.cc>
---
debian/buildd.init | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/debian/buildd.init b/debian/buildd.init
index aa2dfbd..9767e1c 100755
--- a/debian/buildd.init
+++ b/debian/buildd.init
@@ -48,9 +48,9 @@ fi
set -e
start () {
- log_begin_msg "Starting $DESC: $NAME"
+ log_begin_msg "Starting $DESC: $NAME "
- if [ -e /home/buildd/NO-DAEMON-PLEASE ]; then
+ if [ -e /var/lib/buildd/NO-DAEMON-PLEASE ]; then
log_failure_msg "NO-DAEMON-PLEASE exists, not starting"
else
start-stop-daemon --start --quiet --oknodo --pidfile "$PIDFILE" --chuid buildd:buildd --exec $DAEMON
@@ -82,9 +82,9 @@ reload () {
}
restart () {
- log_begin_msg "Restarting $DESC: $NAME"
+ log_begin_msg "Restarting $DESC: $NAME "
if start-stop-daemon --stop --quiet --retry 5 --oknodo --pidfile $PIDFILE --name $NAME; then
- if [ -e /home/buildd/NO-DAEMON-PLEASE ]; then
+ if [ -e /var/lib/buildd/NO-DAEMON-PLEASE ]; then
log_failure_msg "NO-DAEMON-PLEASE exists, not starting"
else
start-stop-daemon --start --quiet --pidfile "$PIDFILE" --chuid buildd:buildd --exec $DAEMON
--
1.7.5.4
More information about the Buildd-tools-devel
mailing list