summaryrefslogtreecommitdiff
path: root/sapi/fpm/php-fpm.service.in
diff options
context:
space:
mode:
authorJerome Loyet <fat@php.net>2012-09-28 00:53:05 +0200
committerJerome Loyet <fat@php.net>2012-09-28 00:53:05 +0200
commit64a0e7cdc2a90a13dd238068a7ff3d357de284b4 (patch)
treea041fcfd922060582f1e3d2e2f5a8551e58f117f /sapi/fpm/php-fpm.service.in
parentb5eb1456aa17e83b7b734dfc2316d632c9adcc6c (diff)
downloadphp-git-64a0e7cdc2a90a13dd238068a7ff3d357de284b4.tar.gz
- Fixed bug #63085 (Systemd integration and daemonize)
Diffstat (limited to 'sapi/fpm/php-fpm.service.in')
-rw-r--r--sapi/fpm/php-fpm.service.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/sapi/fpm/php-fpm.service.in b/sapi/fpm/php-fpm.service.in
new file mode 100644
index 0000000000..396a88d66f
--- /dev/null
+++ b/sapi/fpm/php-fpm.service.in
@@ -0,0 +1,12 @@
+[Unit]
+Description=The PHP FastCGI Process Manager
+After=syslog.target network.target
+
+[Service]
+PIDFile=@localstatedir@/run/php-fpm.pid
+ExecStart=@sbindir@/php-fpm --nodaemonize --fpm-config @sysconfdir@/php-fpm.conf
+ExecReload=/bin/kill -USR2 $MAINPID
+
+[Install]
+WantedBy=multi-user.target
+