I'm writing an rc.d script. I need to do this:
where the scrape URI in rc.conf will be:
Notice the ";" there.
I have php-fpm listening on a unix socket and presenting stats on /status. Problem is, it's using ";" as delimiter between file name and URL path, which gets interpreted as end of command. How do I escape it? '' don't seem to work, \ doesn't seem to work either.
Bash:
pidfile=/var/run/php_fpm_exporter.pid
command="/usr/sbin/daemon"
procname="/usr/local/bin/php-fpm_exporter"
command_args="-f -T ${name} -p ${pidfile} \
/usr/bin/env ${procname} \
--phpfpm.scrape-uri ${php_fpm_exporter_scrape_uri} \
${php_fpm_exporter_args}"
where the scrape URI in rc.conf will be:
Code:
php_fpm_exporter_scrape_uri="unix:///var/run/php-fpm.sock;/status"
Notice the ";" there.
I have php-fpm listening on a unix socket and presenting stats on /status. Problem is, it's using ";" as delimiter between file name and URL path, which gets interpreted as end of command. How do I escape it? '' don't seem to work, \ doesn't seem to work either.