Skip to content

Commit

Permalink
omd: align running service message
Browse files Browse the repository at this point in the history
All services should show the same message upon
```
omd start; omd start
```

CMK-21519

Change-Id: I3cc4dac0c1c5a18a8d4ccae23c701a9acd528e6f
  • Loading branch information
SoloJacobs committed Feb 2, 2025
1 parent ca5d45c commit e8fc995
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ case "$1" in
echo -n 'Starting nsca2mkeventd... '

PID=$(pidof_nsca2mkeventd) && {
echo "Already running (PID: $PID)."
echo "already running (PID: $PID)."
exit 1
}

Expand Down
2 changes: 1 addition & 1 deletion omd/packages/check_mk/skel/etc/init.d/automation-helper
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ case "$1" in
echo -n 'Starting automation-helper...'
# shellcheck disable=SC2086 # Yes, we want splitting for OPTS.
if process_is_running; then
exit_successfully 'Already running.'
exit_successfully 'already running.'
fi

if "$DAEMON"; then
Expand Down
2 changes: 1 addition & 1 deletion omd/packages/check_mk/skel/etc/init.d/ui-job-scheduler
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ case "$1" in
echo -n 'Starting ui-job-scheduler...'
# shellcheck disable=SC2086 # Yes, we want splitting for OPTS.
if process_is_running; then
exit_successfully 'Already running.'
exit_successfully 'already running.'
fi

if "$DAEMON"; then
Expand Down
2 changes: 1 addition & 1 deletion omd/packages/nagios/skel/etc/init.d/nagios
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ case "$1" in
start)
echo -n "Starting nagios..."
if pidof_nagios >/dev/null 2>&1; then
echo 'Already running.'
echo 'already running.'
exit 0
fi

Expand Down
2 changes: 1 addition & 1 deletion omd/packages/pnp4nagios/skel/etc/init.d/pnp_gearman_worker
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ case "$1" in
get_status > /dev/null;
if [ $? = 0 ]; then
echo "failed"
echo "$NAME already running"
echo "$NAME already running."
exit 0;
fi

Expand Down
2 changes: 1 addition & 1 deletion omd/packages/rabbitmq/skel/etc/init.d/rabbitmq
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ case "$1" in
start)
printf "Starting rabbitmq..."
if ! flock --nonblock "${PIDFILE}" --command :; then
exit_successfully 'already running'
exit_successfully 'already running.'
fi

# set locale to avoid irrelevant warnings in log
Expand Down
2 changes: 1 addition & 1 deletion omd/packages/redis/skeleton/etc/init.d/redis
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ case "$1" in
start)
printf 'Starting redis...'
if process_is_running; then
exit_successfully 'already running'
exit_successfully 'already running.'
fi

if "$DAEMON" "$CONF"; then
Expand Down
2 changes: 1 addition & 1 deletion omd/packages/rrdtool/skel/etc/init.d/rrdcached
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ case "$1" in
if [ -e "$PIDFILE" ]; then
PID=$(cat $PIDFILE)
if [ -n "$PID" ] && ps "$PID" >/dev/null 2>&1; then
echo "Already running."
echo "already running."
exit 0
fi
echo "removing stale pid file..."
Expand Down
2 changes: 1 addition & 1 deletion omd/packages/stunnel/skel/etc/init.d/stunnel
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ case "$1" in
if [ -e "$PIDFILE" ]; then
PID=$(cat $PIDFILE)
if [ -n "$PID" ] && ps "$PID" >/dev/null 2>&1; then
echo "Already running."
echo "already running."
exit 0
fi
echo "removing stale pid file..."
Expand Down

0 comments on commit e8fc995

Please sign in to comment.