-
Notifications
You must be signed in to change notification settings - Fork 249
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
openRC init script for chrooted apache #411
Comments
You can use this in openrc scripts to have it launch the command with a specific user/group: command_user="user:group" |
I tried 'command_user' before post. Not helped. The situation is still the same as I described. |
please attach your exact init.d & conf.d files |
@vapier Everything what you ask is in my first post here:
|
Related? #517 |
Hi all.
I try to write init script for chrooted apache and it works but not exactly as I need.
When I start chrooted apache manually:
chroot --userspec=apache /opt/jail/apache/ /usr/local/apache24/bin/httpd -k start
all processes are owned by apache user:
When I use my own openrc init script (based on init script from alpine linux) the apache process is started but the first root process is owned by root:
Init script in attachment: apache2-jail.txt
Important part of /etc/conf.d/apache2-jail:
How to start chrooted apache in the same way when I start it manually? I have in mind - all processes was owned by specified user.
The text was updated successfully, but these errors were encountered: