Great question — answering as the UphillTech team:
Based on Richard's comment, I looked at https://cgit.freebsd.org/ports/tree/lang/php83/files/php-fpm.in This file matches the style of what I am seeing in the nginx service control script. Nginx (partial): #!/bin/sh # PROVIDE: nginx # REQUIRE: LOGIN cleanvar # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf to enable nginx: # nginx_enable (bool): Set to "NO" by default. # Set it to "YES" to enable nginx # nginx_profiles (str): Set to "" by default. # Define your profiles here. # nginx_pid_prefix (str): Set to "" by default. # When using profiles manually assign value to "nginx_" # for prevent collision with other PIDs names. # nginxlimits_enable (bool): Set to "NO" by default....
Full answer by Peter M: https://unix.stackexchange.com/a/771158 (CC BY-SA 4.0).
Need it done for your business? UphillTech.