Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 474548 - dev-lang/php - add a PHP-FPM unit-file for systemd
Summary: dev-lang/php - add a PHP-FPM unit-file for systemd
Status: RESOLVED DUPLICATE of bug 439918
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: install-systemd-unit
  Show dependency tree
 
Reported: 2013-06-24 00:43 UTC by StalkerNOVA
Modified: 2013-07-15 09:54 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
The file (php-fpm@.service,334 bytes, text/plain)
2013-06-24 00:55 UTC, StalkerNOVA
Details

Note You need to log in before you can comment on or make changes to this bug.
Description StalkerNOVA 2013-06-24 00:43:10 UTC
Please add a unit for systemd to dev-lang/php with flag systemd

Reproducible: Always

Steps to Reproduce:
For current package config is located here - /etc/php/fpm-php5.4/php-fpm.conf

With this unit-file to enable it you need to use:
systemctl enable php-fpm@5.4.service
Actual Results:  
With 1 unit-file you can create as much instances as you want. Just rename config folder changing "5.4" the way you need and and same in "systemctl" command.


php-fpm@.service content:

[Unit]
Description=The PHP FastCGI Process Manager %I
After=syslog.target network.target

[Service]
Type=forking
PIDFile=/run/php-fpm-%i.pid
ExecStart=/usr/bin/php-fpm -g /run/php-fpm-%i.pid -y /etc/php/fpm-php%i/php-fpm.conf
ExecReload=/bin/kill -USR2 $MAINPID
ExecStop=kill $MAINPID

[Install]
WantedBy=multi-user.target
Comment 1 StalkerNOVA 2013-06-24 00:55:47 UTC
Created attachment 351778 [details]
The file
Comment 2 Ole Markus With (RETIRED) gentoo-dev 2013-07-15 09:52:36 UTC

*** This bug has been marked as a duplicate of bug 448882 ***
Comment 3 Ole Markus With (RETIRED) gentoo-dev 2013-07-15 09:54:04 UTC

*** This bug has been marked as a duplicate of bug 439918 ***