summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-06-18 14:01:35 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-06-18 14:01:35 +0000
commit05a1e08744ac8117b99cdb337bf673a7294e16f7 (patch)
tree164d2df28523869cef81f31e5b0af10901ac8374 /src
parentdeb10cae9ca7b542e90291ab440951047f4d717a (diff)
downloads6-rc-05a1e08744ac8117b99cdb337bf673a7294e16f7.tar.xz
More unified verbose messages for s6-rc
Diffstat (limited to 'src')
-rw-r--r--src/s6-rc/s6-rc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/s6-rc/s6-rc.c b/src/s6-rc/s6-rc.c
index 9515a93..5b44447 100644
--- a/src/s6-rc/s6-rc.c
+++ b/src/s6-rc/s6-rc.c
@@ -46,7 +46,7 @@ static unsigned int n ;
static unsigned char *state ;
static unsigned int *pendingdeps ;
static tain_t deadline ;
-static unsigned int lameduck = 0 ;
+static int lameduck = 0 ;
static char dryrun[UINT_FMT] = "" ;
static inline void announce (void)
@@ -258,7 +258,7 @@ static void examine (unsigned int i, int h)
if ((state[i] & 1) == h)
{
if (verbosity >= 3)
- strerr_warni4x("processing service ", name, ": already ", h ? "up" : "down") ;
+ strerr_warni4x("service ", name, ": already ", h ? "up" : "down") ;
broadcast_success(i, h) ;
}
else
@@ -269,7 +269,7 @@ static void examine (unsigned int i, int h)
pidindex[npids++].i = i ;
if (verbosity >= 2)
{
- strerr_warni4x("processing service ", name, ": ", h ? "starting" : "stopping") ;
+ strerr_warni4x("service ", name, ": ", h ? "starting" : "stopping") ;
}
}
else
@@ -277,7 +277,7 @@ static void examine (unsigned int i, int h)
if (verbosity)
strerr_warnwu2sys("spawn subprocess for ", name) ;
if (verbosity >= 2)
- strerr_warni5x("processing service ", name, ": ", h ? "start" : "stop", " failed") ;
+ strerr_warni4x("service ", name, ": failed to ", h ? "start" : "stop") ;
}
}
}
@@ -300,7 +300,7 @@ static inline void on_success (unsigned int i, int h)
if (h) state[i] |= 1 ; else state[i] &= 254 ;
announce() ;
if (verbosity >= 2)
- strerr_warni5x(dryrun[0] ? "simulation: " : "", "service ", db->string + db->services[i].name, h ? " started" : " stopped", " successfully") ;
+ strerr_warni5x(dryrun[0] ? "simulation: " : "", "service ", db->string + db->services[i].name, "successfully st", h ? "arted" : "opped") ;
if (!lameduck) broadcast_success(i, h) ;
}