-
Notifications
You must be signed in to change notification settings - Fork 443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wip/rpm server archetype #176
Conversation
- Added linuxSettings for server archetype - Added pid folder in server archetype - Refactored JavaStartScript class/object - Tested with CentOS 6.5
@@ -128,7 +128,7 @@ execRunner () { | |||
} | |||
|
|||
# We Don't use "exec" here for our pids to be accurate. | |||
"$@" | |||
exec "$@" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:) We keep changing our minds here. Exec feels right as this should make the PID files line up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, it should. We were all a bit confused (#168) However I'm with @kardapoltsev and we should put it back as this is the way to go.
Cool. I like this change, travis CI says it passed. If you're done with this change, feel free to merge. The System V script still looks like it might need something to change the daemonUser (important for security). Otherwise, looks good. |
I'll write one more test and run the service as daemon user. |
Adding preinst and postuninstall scripts (wip)
Okay. I think we can merge this and improve based on that. Left todo is
|
Fixing #149
This PR is based on PR #174 to minimize merging overhead.
What has be done
exec
tobash-script
again for correct PID handlingMore details
After installing the rpm with
you access the service with
TODO
daemonUser
anddaemonGroup
are not created. Root is used a fallback by rpmUpstart
doesn't work (just copied the debian configuration, but no luck)