[packages/fedmsg] relay: use nice name from systemd unit
glen
glen at pld-linux.org
Sat Mar 19 16:43:17 CET 2016
commit bdce33e16a0ef8ead811a8a45c2bd5bf24b7f10a
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat Mar 19 17:43:00 2016 +0200
relay: use nice name from systemd unit
fedmsg-relay.init | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/fedmsg-relay.init b/fedmsg-relay.init
index 27304ee..02637cf 100755
--- a/fedmsg-relay.init
+++ b/fedmsg-relay.init
@@ -17,7 +17,7 @@
# Check that networking is up.
if is_yes "${NETWORKING}"; then
if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
- msg_network_down "FedMsg Relay"
+ msg_network_down "FedMsg Active<->Passive Relay"
exit 1
fi
else
@@ -36,11 +36,11 @@ PIDFILE=/var/run/fedmsg/$PROG.pid
start() {
# Check if the service is already running?
if [ -f /var/lock/subsys/fedmsg-relay ]; then
- msg_already_running "FedMsg Relay"
+ msg_already_running "FedMsg Active<->Passive Relay"
return
fi
- msg_starting "FedMsg Relay"
+ msg_starting "FedMsg Active<->Passive Relay"
daemon --user $USER --fork --makepid --pidfile $PIDFILE $PROG $OPTIONS
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/fedmsg-relay
@@ -48,19 +48,19 @@ start() {
stop() {
if [ ! -f /var/lock/subsys/fedmsg-relay ]; then
- msg_not_running "FedMsg Relay"
+ msg_not_running "FedMsg Active<->Passive Relay"
return
fi
# Stop daemons.
- msg_stopping "FedMsg Relay"
+ msg_stopping "FedMsg Active<->Passive Relay"
killproc --pidfile $PIDFILE fedmsg-relay -TERM
rm -f /var/lock/subsys/fedmsg-relay
}
condrestart() {
if [ ! -f /var/lock/subsys/fedmsg-relay ]; then
- msg_not_running "FedMsg Relay"
+ msg_not_running "FedMsg Active<->Passive Relay"
RETVAL=$1
return
fi
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/fedmsg.git/commitdiff/bdce33e16a0ef8ead811a8a45c2bd5bf24b7f10a
More information about the pld-cvs-commit
mailing list