From: Frank Brehm Date: Tue, 25 Oct 2016 22:43:41 +0000 (+0200) Subject: saving uncommitted changes in /etc prior to emerge run X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=66da839b3470fe1f2a72fb524ec2f77de657e392;p=config%2Fbruni%2Fetc.git saving uncommitted changes in /etc prior to emerge run --- diff --git a/conf.d/php-fpm b/conf.d/php-fpm new file mode 100644 index 00000000..b3efdbf0 --- /dev/null +++ b/conf.d/php-fpm @@ -0,0 +1,8 @@ +# The OpenRC conf.d file that accompanies the php-fpm init script. +# Not to be confused with the php-fpm.conf file that ships with +# PHP itself. + +# Set the umask of the FPM process to the given (octal) value. This is +# passed directly to start-stop-daemon. If not specified, the system +# default will be used. +#PHP_FPM_UMASK=0002 diff --git a/init.d/php-fpm b/init.d/php-fpm index 6502ab9b..6369e9f9 100755 --- a/init.d/php-fpm +++ b/init.d/php-fpm @@ -23,6 +23,7 @@ start() { set_phpvars start-stop-daemon --start --pidfile "${PHP_FPM_PID}" \ --exec "${PHP_FPM_BIN}" \ + ${PHP_FPM_UMASK:+--umask ${PHP_FPM_UMASK}} \ -- \ --fpm-config "${PHP_FPM_CONF}" \ --pid "${PHP_FPM_PID}"