You are not logged in.
My php-fpm no longer shutsdown with systemctl just hangs. Has something changed in php-fpm ?
EDIT: more info on boot.
Last edited by TuxLyn (2013-10-02 09:00:32)
::: Using Arch Linux Since October 25, 2011 :::
::: Tutorials: http://distrogeeks.com/ :::
Offline
There is a couple of bugs open about this. It is an issue with systemd-207 if I remember correctly.
Offline
This might also explain why my sshd is not starting on the server when I configure sshd_config on custom port/ip and allow only user access and block root.
This is the error I'm getting when I run systemctl status sshd
sshd.service - OpenSSH Daemon
Loaded: loaded (/usr/lib/systemd/system/sshd.service: enabled)
Active: failed (Result: start-limit) since ...
Process: 395 ExecStart=/usr/bin/sshd -D (code=exited, status=255)
Main PID: 395 (code=exited, status=255)
Any ideas ??
Last edited by TuxLyn (2013-09-29 08:57:15)
::: Using Arch Linux Since October 25, 2011 :::
::: Tutorials: http://distrogeeks.com/ :::
Offline
I'm using this config to have multiple ips on the server > http://gotux.net/arch-linux/multiple-dedicated-ips/
then in /root/ips.sh at the end I've simply added this as workaround for now.
sleep 30
systemctl restart sshd
::: Using Arch Linux Since October 25, 2011 :::
::: Tutorials: http://distrogeeks.com/ :::
Offline
As for php-fpm it seems to start correctly on boot, but only when I try to stop php-fpm with systemctl when it hangs.
::: Using Arch Linux Since October 25, 2011 :::
::: Tutorials: http://distrogeeks.com/ :::
Offline
Experiencing the same thing. Running `systemctl status php-fpm` gives the following info
php-fpm.service - The PHP FastCGI Process Manager
Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; enabled)
Active: deactivating (stop-sigkill) (Result: timeout) since Wed 2013-10-02 04:36:59 UTC; 2min 40s ago
Main PID: 235
Status: "Processes active: 0, idle: 2, Requests: 2, slow: 0, Traffic: 0req/sec"
CGroup: /system.slice/php-fpm.service
Oct 02 04:23:06 kuhn systemd[1]: Started The PHP FastCGI Process Manager.
Oct 02 04:36:59 kuhn systemd[1]: Stopping The PHP FastCGI Process Manager...
Oct 02 04:38:29 kuhn systemd[1]: php-fpm.service stopping timed out. Killing.
Edit: Though with this timeout it works correctly (eg. in case of a systemctl restart php-fpm), just have wait longer....
Last edited by imrehg (2013-10-02 04:42:53)
Offline
Tiny workaround for now until this bug is fixed.
Use "--no-block" option "Do not wait until operation finished".
systemctl --no-block start php-fpm
systemctl --no-block stop php-fpm
::: Using Arch Linux Since October 25, 2011 :::
::: Tutorials: http://distrogeeks.com/ :::
Offline
Actually, its better to downgrade the package instead as suggested here https://bugs.archlinux.org/task/37009
This downgrade worked for me.
sudo pacman -U /var/cache/pacman/pkg/php-fpm-5.5.3-1-x86_64.pkg.tar.xz
This bug seems to exist only in version 5.5.4
EDIT: It seems to hang even with version 5.5.3 and 5.5.2
So it might be something to do with systemd it self O_o
To reproduce this try starting/stoping php-fpm 5+ times in a row.
It will hang for a bit then it seems to recover unlike version 5.5.4
which hangs for a very long time.
Last edited by TuxLyn (2013-10-02 09:02:38)
::: Using Arch Linux Since October 25, 2011 :::
::: Tutorials: http://distrogeeks.com/ :::
Offline
It's not a problem of the PHP package, but a bug in systemd. This should be fixed in systemd 208 (currently in testing).
Offline