Apache Crashes AH00295: pegou SIGTERM, desligando [systemctl]

0

Eu criei apache-httpd-2.4.20 da fonte e instalei corretamente.

Eu criei apphttpd.service sob /etc/systemd/system .

Script

[Unit]
Description=Apache Web Server
After=network.target remote-fs.target nss-lookup.target

[Service]
Type=simple
TimeoutStartSec=600
PIDFile=/usr/local/apache/logs/httpd.pid
ExecStart=/usr/local/apache/bin/apachectl -k start
ExecStop=/usr/local/apache/bin/apachectl -k stop
ExecReload=/usr/local/apache/bin/apachectl -k graceful
Restart=on-abort
PrivateTmp=true
LimitNOFILE=infinity
#User=root
#Group=root

[Install]
WantedBy=multi-user.target

quando executo systemctl start apphttpd , recebo uma mensagem iniciada Apache Web Server,

Log de status

**systemctl status -l apphttpd**

apphttpd.service - Apache Web Server
   Loaded: loaded (/etc/systemd/system/apphttpd.service; enabled)
   Active: inactive (dead) since Wed 2018-06-13 21:45:20 SGT; 14min ago
  Process: 112124 ExecStop=/usr/local/apache/bin/apachectl -k stop (code=exited, status=0/SUCCESS)
  Process: 112118 ExecStart=/usr/local/apache/bin/apachectl -k start (code=exited, status=0/SUCCESS)
 Main PID: 112118 (code=exited, status=0/SUCCESS)

Jun 13 21:45:20 <host> systemd[1]: Started Apache Web Server.

mas os serviços não são iniciados na verdade.

informações do error_log:

[Wed Jun 13 21:45:20.873135 2018] [core:debug] [pid 112123:tid 139709837686656] log.c(1546): AH02639: Using SO_REUSEPORT: yes (1)
[Wed Jun 13 21:45:20.873145 2018] [mpm_worker:debug] [pid 112123:tid 139709837686656] worker.c(1874): AH00294: Accept mutex: sysvsem (default: sysvsem)
[Wed Jun 13 21:45:20.907675 2018] [core:info] [pid 112123:tid 139709837686656] AH00096: removed PID file /usr/local/apache/logs/httpd.pid (pid=112123)
[Wed Jun 13 21:45:20.907684 2018] [mpm_worker:notice] [pid 112123:tid 139709837686656] AH00295: caught SIGTERM, shutting down

Mas se eu iniciar o serviço a partir de / usr / local / apache / bin / apachectl -k start, os serviços serão iniciados corretamente e poderão obter a resposta.

[Wed Jun 13 21:46:25.146698 2018] [core:debug] [pid 112229:tid 140320724187008] log.c(1546): AH02639: Using SO_REUSEPORT: yes (1)
[Wed Jun 13 21:46:25.146711 2018] [mpm_worker:debug] [pid 112229:tid 140320724187008] worker.c(1874): AH00294: Accept mutex: sysvsem (default: sysvsem)

Existe algum problema com o meu script apphttpd.service, qualquer problema de acesso? Obrigado por suas sugestões e ajuda com antecedência.

    
por Arockia Raj 13.06.2018 / 17:53

0 respostas