From: Leo Unglaub Subject: Re: lang/php: multiple PHP-FPM master processes To: ports@openbsd.org Date: Tue, 17 Feb 2026 20:08:36 +0100 I looked thru all .rc files in ports and some scripts do use external tools like sed. So here is my version that catches both -y /path/to/config and --fpm-config /path/my.config > _conf=$(echo "${daemon_flags}" | sed -E -n 's/.* (-y|--fpm-config) +([^ ]+).*/\2/p') > pexp="php-fpm-8.4: master process \\(${_conf:-/etc/php-fpm.conf}\\).*" If no options are set, it defaults to /etc/php-fpm.conf and should still match. On 2/17/26 19:57, Stuart Henderson wrote: > parsing with a shell 'case' conditional may be the easiest way > > (if it weren't for --fpm-config, shell getopts would do)