1
0
Fork 0
chezmoi/dot_config/systemd/user/php@.service.tmpl
2022-05-06 10:08:57 +02:00

20 lines
798 B
Cheetah

# It's not recommended to modify this file in-place, because it
# will be overwritten during upgrades. If you want to customize,
# the best way is to use the "systemctl edit" command.
[Unit]
Description=The PHP %i FastCGI Process Manager
After=network.target
[Service]
Type=notify
; PIDFile=${RUNTIME_DIRECTORY}/php-fpm.pid
#ExecStart=/usr/bin/php-fpm%i --nodaemonize --fpm-config %t/php/fpm/php-fpm.conf -c ${CONFIGURATION_DIRECTORY} --pid ${RUNTIME_DIRECTORY}/php-fpm.pid --force-stderr
ExecStart=/usr/bin/php-fpm%i --nodaemonize --fpm-config %E/php/%i/fpm/php-fpm.conf -n -c {{.chezmoi.homeDir}}/.config/php/%i/php.ini --force-stderr
ExecReload=/bin/kill -USR2 $MAINPID
#RuntimeDirectory=php-fpm-%i
RuntimeDirectory=php$i-fpm
#ConfigurationDirectory=php/%i
[Install]
WantedBy=default.target