Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
6
66
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eric Vidal
66
Commits
cd081fd3
Commit
cd081fd3
authored
6 years ago
by
Eric Vidal
Browse files
Options
Downloads
Patches
Plain Diff
be clean on announce
parent
48dea3d9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lib66/ssexec_svctl.c
+7
-6
7 additions, 6 deletions
src/lib66/ssexec_svctl.c
with
7 additions
and
6 deletions
src/lib66/ssexec_svctl.c
+
7
−
6
View file @
cd081fd3
...
...
@@ -231,10 +231,10 @@ static void announce(ss_resolve_sig_t *sv_signal)
int
r
=
sv_signal
->
state
;
char
*
sv
=
sv_signal
->
res
.
sa
.
s
+
sv_signal
->
res
.
runat
;
if
(
r
==
3
)
{
VERBO
1
strerr_warnw3x
(
sv
,
" report permanent failure -- unable to "
,(
sv_signal
->
sig
>
1
)
?
"stop"
:
"start"
)
;
}
else
if
(
r
==
2
)
{
VERBO
1
strerr_warnwu2x
((
sv_signal
->
sig
>
3
)
?
"stop "
:
"start "
,
sv
)
;
}
else
if
(
r
==
1
)
{
VERBO
1
strerr_warni4x
(
sv
,
" is "
,(
sv_signal
->
sig
>
3
)
?
"down"
:
"up"
,
" but not notified by the daemon itself"
)
;
}
else
if
(
!
r
)
{
VERBO
1
strerr_warni4x
(
sv
,
": "
,(
sv_signal
->
sig
>
3
)
?
"stopped"
:
"started"
,
" successfully"
)
;
}
if
(
r
==
3
)
{
VERBO
2
strerr_warnw3x
(
sv
,
" report permanent failure -- unable to "
,(
sv_signal
->
sig
>
1
)
?
"stop"
:
"start"
)
;
}
else
if
(
r
==
2
)
{
VERBO
2
strerr_warnwu2x
((
sv_signal
->
sig
>
3
)
?
"stop "
:
"start "
,
sv
)
;
}
else
if
(
r
==
1
)
{
VERBO
2
strerr_warni4x
(
sv
,
" is "
,(
sv_signal
->
sig
>
3
)
?
"down"
:
"up"
,
" but not notified by the daemon itself"
)
;
}
else
if
(
!
r
)
{
VERBO
2
strerr_warni4x
(
sv
,
": "
,(
sv_signal
->
sig
>
3
)
?
"stopped"
:
"started"
,
" successfully"
)
;
}
}
int
svc_listen
(
genalloc
*
gasv
,
ftrigr_t
*
fifo
,
int
spfd
,
ss_resolve_sig_t
*
svc
)
...
...
@@ -377,13 +377,13 @@ int ssexec_svctl(int argc, char const *const *argv,char const *const *envp,ssexe
if
(
isup
&&
(
SIGNAL
<=
SIGRUP
))
{
VERBO1
strerr_warni2x
(
svok
,
": already up"
)
;
VERBO1
strerr_warni2x
(
"Already up: "
,
string
+
sv_signal
.
res
.
name
)
;
ss_resolve_free
(
&
sv_signal
.
res
)
;
continue
;
}
else
if
(
!
isup
&&
(
SIGNAL
>=
SIGDOWN
))
{
VERBO1
strerr_warni2x
(
svok
,
": a
lready down
"
)
;
VERBO1
strerr_warni2x
(
"A
lready down
: "
,
string
+
sv_signal
.
res
.
name
)
;
ss_resolve_free
(
&
sv_signal
.
res
)
;
continue
;
}
...
...
@@ -531,6 +531,7 @@ int ssexec_svctl(int argc, char const *const *argv,char const *const *envp,ssexe
VERBO1
strerr_warnwu2sys
(
"write resolve file of: "
,
name
)
;
ret
=
111
;
}
VERBO1
strerr_warni3x
((
sv
->
sig
>
3
)
?
"Stopped"
:
"Started"
,
" successfully: "
,
name
)
;
ss_resolve_free
(
&
sv
->
res
)
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment