Req #63085 [Com]: Systemd integration and daemonize
| From: | remi@php.net | Date: | Fri, 14 Sep 2012 05:43:02 +0000 |
| Subject: | Req #63085 [Com]: Systemd integration and daemonize | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-173428@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63085&edit=1
ID: 63085
Comment by: remi@php.net
Reported by: remi@php.net
Summary: Systemd integration and daemonize
Status: Open
Type: Feature/Change Request
Package: FPM related
Operating System: GNU/Linux (Fedora 17)
PHP Version: 5.4.7
Block user comment: N
Private report: N
New Comment:
I have join the systemd unit file used in Fedora.
Note : "type=Forking" is not present,
so this rely on daemonize=no in config file.
It could be great to have this unit file (made more generic if needed) provided in php distribution.
Previous Comments:
------------------------------------------------------------------------
[2012-09-14 05:41:08] remi@php.net
The following patch has been added/updated:
Patch Name: php-fpm.service
Revision: 1347601268
URL: https://bugs.php.net/patch-display.php?bug=63085&patch=php-fpm.service&revision=1347601268
------------------------------------------------------------------------
[2012-09-14 05:40:12] remi@php.net
Description:
------------
Currently "daemonize" is a option taken from configuration file.
I think is is quite ugly to have a starting script of systemd unit file to rely on a external
configuration file.
I think a command line option will be more robust.
For ex,
- in init script we could launch php-fpm --daemonize
- in systemd unit, we could launch php-fpm --nodaemonize
Without command line option, I propose to keep reading option from the config file (to not break
existing configuration).
We could also imagine another option (--debug) which run in foreground and log everything need thing
to screen (for interactive run).
What do you think ?
I could propose a patch
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63085&edit=1