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
2015-05-15 01:46:09 -05:00
committed by Martin Jansa
parent c8ae4dc8ce
commit 2848cc99a1
2 changed files with 22 additions and 1 deletions
@@ -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