projects
/
mythtv-status.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f30b6b
)
Make sure that the init.d script doesn't terminate if mythtv-status has warnings.
author
Andrew Ruthven
<andrew@etc.gen.nz>
Wed, 29 Oct 2008 22:03:31 +0000
(11:03 +1300)
committer
Andrew Ruthven
<andrew@etc.gen.nz>
Thu, 30 Oct 2008 00:54:50 +0000
(13:54 +1300)
debian/init.d
patch
|
blob
|
history
diff --git
a/debian/init.d
b/debian/init.d
index 9c2f979ca4334af3c0bee9ace7ed3fc06f04d2a6..a254df54ff463e47c61f4782e9ae769f7440f39d 100644
(file)
--- a/
debian/init.d
+++ b/
debian/init.d
@@
-64,11
+64,16
@@
case "$1" in
cp /var/run/motd.orig /var/run/motd.new
- $DAEMON $ARGS -h $HOST >> /var/run/motd.new
- if [ $? -eq 0 -o $? -eq 1 ]; then
+ set +e
+ $DAEMON $ARGS -h $HOST >> /var/run/motd.new 2> /dev/null
+ ret=$?
+ set -e
+ if [ $ret -eq 0 -o $ret -eq 1 ]; then
mv /var/run/motd.new /var/run/motd
+ log_end_msg 0
+ else
+ log_failure_msg
fi
- log_end_msg 0
;;
stop)
log_daemon_msg "Stopping $DESC" "$NAME"