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
93947d0a
Commit
93947d0a
authored
6 years ago
by
Eric Vidal
Browse files
Options
Downloads
Patches
Plain Diff
parser_write:add resolve logger file
parent
096ac469
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/parser_write.c
+22
-1
22 additions, 1 deletion
src/lib66/parser_write.c
with
22 additions
and
1 deletion
src/lib66/parser_write.c
+
22
−
1
View file @
93947d0a
...
...
@@ -159,7 +159,7 @@ int write_services(sv_alltype *sv, char const *workdir, unsigned int force)
{
VERBO3
strerr_warnwu2x
(
"write resolve file: reload for service: "
,
name
)
;
return
0
;
}
}
}
if
(
sv
->
opts
[
0
])
{
...
...
@@ -175,12 +175,33 @@ int write_services(sv_alltype *sv, char const *workdir, unsigned int force)
}
logname
[
namelen
+
4
]
=
0
;
/** resolve directory*/
if
(
!
resolve_remove_service
(
workdir
,
logname
))
{
VERBO3
strerr_warnwu2sys
(
"remove resolve directory for: "
,
name
)
;
return
0
;
}
//VERBO2 strerr_warnt4x("write resolve file ", src,SS_RESOLVE,"/logger ...") ;
if
(
!
resolve_write
(
workdir
,
name
,
"logger"
,
logname
,
force
))
{
VERBO3
strerr_warnwu2x
(
"write resolve file: logger for service: "
,
name
)
;
return
0
;
}
/** write resolve logger file */
if
(
!
resolve_write
(
workdir
,
logname
,
"type"
,
get_keybyid
(
type
),
force
))
{
VERBO3
strerr_warnwu2x
(
"write resolve file: type for service: "
,
logname
)
;
return
0
;
}
if
(
type
==
LONGRUN
&&
force
)
{
/** reload file */
if
(
!
resolve_write
(
workdir
,
logname
,
"reload"
,
""
,
force
))
{
VERBO3
strerr_warnwu2x
(
"write resolve file: reload for service: "
,
logname
)
;
return
0
;
}
}
}
...
...
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