From 66da839b3470fe1f2a72fb524ec2f77de657e392 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 26 Oct 2016 00:43:41 +0200 Subject: [PATCH] saving uncommitted changes in /etc prior to emerge run --- conf.d/php-fpm | 8 ++++++++ init.d/php-fpm | 1 + 2 files changed, 9 insertions(+) create mode 100644 conf.d/php-fpm 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}" -- 2.39.5