Mac os X Plist de descarga de erro

2

Atualmente estou usando o MacOSX 10.8 e tentei instalar o php-fpm integrado.

Além disso, quero que um arquivo plist inicie e interrompa o php-fpm sob demanda. Eu encontrei este aqui

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>KeepAlive</key>
    <true/>
    <key>Label</key>
    <string>net.php.php-fpm</string>
    <key>LaunchOnlyOnce</key>
    <true/>
    <key>NetworkState</key>
    <true/>
    <key>ProgramArguments</key>
    <array>
        <string>/usr/sbin/php-fpm</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    <key>ServiceDescription</key>
    <string>PHP FastCGI Process Manager</string>
    <key>StandardErrorPath</key>
    <string>/var/log/system.log</string>
</dict>
</plist>

Onde o launchctl (com sudo) -w load funciona ... Quando tento descarregar, recebo este erro:

launchctl: Error unloading: net.php.php-fpm

Eu não entendo porque?

ATUALIZAÇÃO:

$ sudo launchctl load -w /Library/LaunchAgents/net.php.php-fpm.plist 
$ ps aux | grep php
nobody          2055   0.0  0.0  2450420    604   ??  S     2:28PM   0:00.00 /usr/sbin/php-fpm
nobody          2054   0.0  0.0  2450420    604   ??  S     2:28PM   0:00.00 /usr/sbin/php-fpm
root            2053   0.0  0.0  2450420    668   ??  Ss    2:28PM   0:00.00 /usr/sbin/php-fpm

$ tail -f /var/log/system.log
Jan 31 14:28:12 XXXXXX sudo[2040]:      t5e : TTY=ttys001 ; PWD=/Volumes/diskE/Users/XXX ; USER=root ; COMMAND=/bin/launchctl load -w /Library/LaunchAgents/net.php.php-fpm.plist

$ sudo launchctl unload -w /Library/LaunchAgents/net.php.php-fpm.plist
launchctl: Error unloading: net.php.php-fpm

$ ps aux | grep php
nobody          2054   0.0  0.0  2450420    604   ??  S     2:28PM   0:00.00 /usr/sbin/php-fpm
root            2053   0.0  0.0  2450420    668   ??  Ss    2:28PM   0:00.00 /usr/sbin/php-fpm
nobody          2055   0.0  0.0  2450420    604   ??  S     2:28PM   0:00.00 /usr/sbin/php-fpm

$ tail -f /var/log/system.log
Jan 31 14:28:30 XXXXXX sudo[2081]:      t5e : TTY=ttys001 ; PWD=/Volumes/diskE/Users/XXX ; USER=root ; COMMAND=/bin/launchctl unload -w /Library/LaunchAgents/net.php.php-fpm.plist
    
por Kakawait 31.01.2013 / 13:11

1 resposta

0

Encontrei minha resposta dentro do sistema de acompanhamento de erros do Homebrew:

link

É sobre a configuração do PHP-FPM, devemos colocar o daemonize do PHP-FPM em não (default = true)

    
por 31.01.2013 / 15:21