mdserver-web/plugins/php/init.d/php.service.tpl

18 lines
542 B
Smarty
Raw Normal View History

2022-06-18 02:40:06 -04:00
# 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 {$VERSION} FastCGI Process Manager
After=network.target
[Service]
2022-06-19 00:08:37 -04:00
Type=forking
ExecStart={$SERVER_PATH}/php/{$VERSION}/sbin/php-fpm --daemonize --fpm-config {$SERVER_PATH}/php/{$VERSION}/etc/php-fpm.conf
2022-06-19 00:35:06 -04:00
ExecStop=/bin/kill -INT $MAINPID
2022-06-18 02:40:06 -04:00
ExecReload=/bin/kill -USR2 $MAINPID
2022-06-19 00:08:37 -04:00
PrivateTmp=false
2022-06-18 02:40:06 -04:00
[Install]
WantedBy=multi-user.target