php-fpm: Add support for systemd

Adds suport for systemd, creates a service for php-fpm and installs it if required

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Alejandro Hernandez authored and Martin Jansa committed 2015-05-22 20:13:32 +02:00
1 parent c8ae4dc8ce
commit 2848cc99a1
2 files changed
+22 -1

No files matched your search

@@ -0,0 +1,10 @@
[Unit]
Description=PHP-FPM
After=network.target
[Service]
Type=forking
PIDFile=@LOCALSTATEDIR@/run/php-fpm.pid
ExecStart=@SYSCONFDIR@/init.d/php-fpm start
ExecStop=@SYSCONFDIR@/init.d/php-fpm stop
[Install]
WantedBy=multi-user.target