-
Notifications
You must be signed in to change notification settings - Fork 3k
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
include systemd init setup files in hhvm proper? #4520
Comments
Please open an issue at https://github.com/hhvm/packaging |
PLD Linux (Th) does too, optionally, since 2012 @jrobeson |
However, the unit files themselves should exist in main hhvm repo, including cmake integration, hhvm/packaging would just run build and install with proper |
Draft:
The I use If you do not want to support a I also tried to implement automatic socket activation, but it appears there is more work necessary within HHVM itself to implement it. E.g. listen on a given FD instead of creating an own socket – it might be a good idea to implement this while cleaning up the socket-file-already-exists issue. As I have
You need to enable it explicitly, and then
#!/bin/bash
set -e
tmpdir=`mktemp -d`
output="${tmpdir}"/output
input="${tmpdir}"/input
onexit() {
rm -fr "${tmpdir}"
}
trap onexit EXIT
for app in "$@" ; do
find "${app}" -name '*.php' -fprint "${input}"
done
/usr/bin/hhvm --hphp --target hhbc --input-list "${input}" --output-dir "${output}"
chmod 0644 "${output}"/hhvm.hhbc
chown www-data "${output}"/hhvm.hhbc
chgrp www-data "${output}"/hhvm.hhbc
mv "${output}"/hhvm.hhbc /var/run/hhvm/hhvm.hhbc |
I'm wondering why follks don't use a separate hhvm user for privilege separation. Is there any reason hhvm should run as www-data ? |
Closing: this has more detail, but hhvm/packaging#102 is the right place for this. |
Until recently it wasn't feasible to include distribution init scripts for distributions without some distribution users being left out in the cold. Now , though.. many distributions use (or will use) systemd in their default installations.
Here is a list of the distributions that offer systemd i know of:
That's pretty good coverage for one init system, so it'd be cool if HHVM could offer a basic one that users can use directly after installing from source.
The text was updated successfully, but these errors were encountered: