-
Notifications
You must be signed in to change notification settings - Fork 444
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
Trouble using *daemonUser* and *daemonGroup* settings for RPM #856
Comments
Thanks for your report. Can you give some more information to clarify this issue
|
This bug comes with 1.2 refactoring. D I had it with rpm and systemv. |
This is with version 1.1.1 of native packager.
I did not set one explicitly, but the target system is SystemV style and that's what the package appears to have generated.
I'll see what I can do. |
I am not sure if this is related but I also noticed that when the rpm is installed, it creates a group and a user matching the project name. I would have thought these two would have matched daemon group and daemon user setting respectively? |
Still a pesky bug in April 2017. |
I found I was able to set them in the Linux scope and it worked for my RPM, ie
|
@keirlawson is correct. You have to scope the The
The whole script generating process needs a big overhaul. I started this 1-2 years a go and did some cleanup, but haven't really touched the architecture itself. |
I have a build generating an RPM where the daemon user has to be a particular existing user on the target machine. I've tried using the daemonUser and daemonGroup settings but they are not working as I expect they should be. I'm setting them with:
When I inspect the generated RPM file, the directory in /var/run is created with the daemonUser and daemonGroup ownership, while the /var/log directory is not.
Even so, when installing the RPM the /var/run ownership is apparently ignored, and the resulting daemon does not run as the daemonUser but rather as a new user created to match the project name, like typical.
Any ideas what's going on or what I'm missing?
Thanks.
The text was updated successfully, but these errors were encountered: