]> Frank Brehm's Git Trees - config/bruni/etc.git/commitdiff
saving uncommitted changes in /etc prior to emerge run
authorFrank Brehm <frank@brehm-online.com>
Tue, 25 Oct 2016 22:43:41 +0000 (00:43 +0200)
committerFrank Brehm <frank@brehm-online.com>
Tue, 25 Oct 2016 22:43:41 +0000 (00:43 +0200)
conf.d/php-fpm [new file with mode: 0644]
init.d/php-fpm

diff --git a/conf.d/php-fpm b/conf.d/php-fpm
new file mode 100644 (file)
index 0000000..b3efdbf
--- /dev/null
@@ -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
index 6502ab9b7d0f0d8539a6958aa463b90327982f92..6369e9f913d1bc18eae98947e517b9dee031556b 100755 (executable)
@@ -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}"