Linux service status exited

процесс при проверке статуса выдает active (exited)

jabber сервер при долгом простое перестает отвечать, при проверке статуса сервера отвечает active (exited). сервер не отвечает и на веб интерфейсе. почему это происходит, и можно ли запретить ему отключаться? чтобы статус сервиса был active (running)

Процесс jabber-сервера умирает по собственной инициативе.

и можно ли запретить ему отключаться?

Нет, нельзя запретить процессам падать 🙂

А вообще, телепатов нет. Вывод systemctl status , systemctl cat и journalctl -b -u в студию.

● openfire.service — LSB: Start/stop openfire jabber server Loaded: loaded (/etc/init.d/openfire; generated) Active: active (exited) since Wed 2020-08-05 12:39:58 UTC; 41min ago Docs: man:systemd-sysv-generator(8) Process: 9737 ExecStart=/etc/init.d/openfire start (code=exited, status=0/SUCCESS)

Aug 05 12:39:58 ubuntu systemd[1]: Starting LSB: Start/stop openfire jabber server… Aug 05 12:39:58 ubuntu openfire[9737]: best java alternative in: Aug 05 12:39:58 ubuntu openfire[9737]: Starting openfire: openfire. Aug 05 12:39:58 ubuntu systemd[1]: Started LSB: Start/stop openfire jabber server.

/run/systemd/generator.late/openfire.service

Automatically generated by systemd-sysv-generator

[Unit] Documentation=man:systemd-sysv-generator(8) SourcePath=/etc/init.d/openfire Description=LSB: Start/stop openfire jabber server Before=multi-user.target Before=multi-user.target Before=multi-user.target Before=graphical.target After=remote-fs.target After=network-online.target Wants=network-online.target

[Service] Type=forking Restart=no TimeoutSec=5min IgnoreSIGPIPE=no KillMode=process GuessMainPID=no RemainAfterExit=yes SuccessExitStatus=5 6 ExecStart=/etc/init.d/openfire start ExecStop=/etc/init.d/openfire stop – Logs begin at Tue 2019-12-03 17:03:14 UTC, end at Wed 2020-08-05 13:22:07 UTC. – Aug 04 15:34:29 ubuntu systemd[1]: Starting LSB: Start/stop openfire jabber server… Aug 04 15:34:30 ubuntu openfire[1447]: best java alternative in: Aug 04 15:34:30 ubuntu openfire[1447]: Starting openfire: openfire. Aug 04 15:34:30 ubuntu systemd[1]: Started LSB: Start/stop openfire jabber server. Aug 05 04:24:57 ubuntu systemd[1]: Stopping LSB: Start/stop openfire jabber server… Aug 05 04:24:57 ubuntu openfire[7097]: best java alternative in: Aug 05 04:24:57 ubuntu openfire[7097]: Stopping openfire: openfire. Aug 05 04:24:57 ubuntu systemd[1]: openfire.service: Succeeded. Aug 05 04:24:57 ubuntu systemd[1]: Stopped LSB: Start/stop openfire jabber server. Aug 05 04:24:57 ubuntu systemd[1]: Starting LSB: Start/stop openfire jabber server… Aug 05 04:24:57 ubuntu openfire[7105]: best java alternative in: Aug 05 04:24:57 ubuntu openfire[7105]: Starting openfire: openfire. Aug 05 04:24:57 ubuntu systemd[1]: Started LSB: Start/stop openfire jabber server. Aug 05 12:39:58 ubuntu systemd[1]: Stopping LSB: Start/stop openfire jabber server… Aug 05 12:39:58 ubuntu openfire[9730]: best java alternative in: Aug 05 12:39:58 ubuntu openfire[9730]: Stopping openfire: openfire. Aug 05 12:39:58 ubuntu systemd[1]: openfire.service: Succeeded. Aug 05 12:39:58 ubuntu systemd[1]: Stopped LSB: Start/stop openfire jabber server. Aug 05 12:39:58 ubuntu systemd[1]: Starting LSB: Start/stop openfire jabber server… Aug 05 12:39:58 ubuntu openfire[9737]: best java alternative in: Aug 05 12:39:58 ubuntu openfire[9737]: Starting openfire: openfire. Aug 05 12:39:58 ubuntu systemd[1]: Started LSB: Start/stop openfire jabber server.

Читайте также:  Просмотр текущих соединений linux

А теперь с разметкой, пожалуйста: Правила разметки (Markdown)

intelfx ★★★★★ ( 05.08.20 16:35:58 MSK )
Последнее исправление: intelfx 05.08.20 16:36:23 MSK (всего исправлений: 1)

● openfire.service - LSB: Start/stop openfire jabber server Loaded: loaded (/etc/init.d/openfire; generated) Active: active (exited) since Wed 2020-08-05 12:39:58 UTC; 41min ago Docs: man:systemd-sysv-generator(8) Process: 9737 ExecStart=/etc/init.d/openfire start (code=exited, status=0/SUCCESS) Aug 05 12:39:58 ubuntu systemd[1]: Starting LSB: Start/stop openfire jabber server. Aug 05 12:39:58 ubuntu openfire[9737]: best java alternative in: Aug 05 12:39:58 ubuntu openfire[9737]: Starting openfire: openfire. Aug 05 12:39:58 ubuntu systemd[1]: Started LSB: Start/stop openfire jabber server. # /run/systemd/generator.late/openfire.service # Automatically generated by systemd-sysv-generator [Unit]i Documentation=man:systemd-sysv-generator(8) SourcePath=/etc/init.d/openfire Description=LSB: Start/stop openfire jabber server Before=multi-user.target Before=multi-user.target Before=multi-user.target Before=graphical.target After=remote-fs.target After=network-online.target Wants=network-online.target [Service] Type=forking Restart=no TimeoutSec=5min IgnoreSIGPIPE=no KillMode=process GuessMainPID=no RemainAfterExit=yes SuccessExitStatus=5 6 ExecStart=/etc/init.d/openfire start ExecStop=/etc/init.d/openfire stop -- Logs begin at Tue 2019-12-03 17:03:14 UTC, end at Wed 2020-08-05 13:22:07 UTC. -- Aug 04 15:34:29 ubuntu systemd[1]: Starting LSB: Start/stop openfire jabber server. Aug 04 15:34:30 ubuntu openfire[1447]: best java alternative in: Aug 04 15:34:30 ubuntu openfire[1447]: Starting openfire: openfire. Aug 04 15:34:30 ubuntu systemd[1]: Started LSB: Start/stop openfire jabber server. Aug 05 04:24:57 ubuntu systemd[1]: Stopping LSB: Start/stop openfire jabber server. Aug 05 04:24:57 ubuntu openfire[7097]: best java alternative in: Aug 05 04:24:57 ubuntu openfire[7097]: Stopping openfire: openfire. Aug 05 04:24:57 ubuntu systemd[1]: openfire.service: Succeeded. Aug 05 04:24:57 ubuntu systemd[1]: Stopped LSB: Start/stop openfire jabber server. Aug 05 04:24:57 ubuntu systemd[1]: Starting LSB: Start/stop openfire jabber server. Aug 05 04:24:57 ubuntu openfire[7105]: best java alternative in: Aug 05 04:24:57 ubuntu openfire[7105]: Starting openfire: openfire. Aug 05 04:24:57 ubuntu systemd[1]: Started LSB: Start/stop openfire jabber server. Aug 05 12:39:58 ubuntu systemd[1]: Stopping LSB: Start/stop openfire jabber server. Aug 05 12:39:58 ubuntu openfire[9730]: best java alternative in: Aug 05 12:39:58 ubuntu openfire[9730]: Stopping openfire: openfire. Aug 05 12:39:58 ubuntu systemd[1]: openfire.service: Succeeded. Aug 05 12:39:58 ubuntu systemd[1]: Stopped LSB: Start/stop openfire jabber server. Aug 05 12:39:58 ubuntu systemd[1]: Starting LSB: Start/stop openfire jabber server. Aug 05 12:39:58 ubuntu openfire[9737]: best java alternative in: Aug 05 12:39:58 ubuntu openfire[9737]: Starting openfire: openfire. Aug 05 12:39:58 ubuntu systemd[1]: Started LSB: Start/stop openfire jabber server. 

Источник

Читайте также:  Linux debian установка драйвера nvidia

systemctl status active: exited vs running

Sorry for this noob question, I searched for it and found no explanation. I’m unable to understand the different of systemctl status active (exited) for active (running) . Here are 2 examples on my server:

$systemctl status pihole-FTL.service ● pihole-FTL.service - LSB: pihole-FTL daemon Loaded: loaded (/etc/init.d/pihole-FTL; generated) Active: active (exited) since Thu 2020-12-31 12:21:34 -03; 1h 13min ago Docs: man:systemd-sysv-generator(8) Tasks: 0 (limit: 38279) Memory: 0B CGroup: /system.slice/pihole-FTL.service dez 31 12:21:34 server systemd[1]: Starting LSB: pihole-FTL daemon. dez 31 12:21:34 server pihole-FTL[81286]: Not running dez 31 12:21:34 server su[81306]: (to pihole) root on none dez 31 12:21:34 server su[81306]: pam_unix(su:session): session opened for user pihole by (uid=0) dez 31 12:21:34 server su[81306]: pam_unix(su:session): session closed for user pihole dez 31 12:21:34 server systemd[1]: Started LSB: pihole-FTL daemon. $systemctl status apache2.service ● apache2.service - The Apache HTTP Server Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled) Active: active (running) since Thu 2020-12-31 11:55:36 -03; 1h 40min ago Docs: https://httpd.apache.org/docs/2.4/ Main PID: 35401 (apache2) Tasks: 11 (limit: 38279) Memory: 36.7M CGroup: /system.slice/apache2.service ├─ 35401 /usr/sbin/apache2 -k start ├─ 35402 /usr/sbin/apache2 -k start ├─ 35404 /usr/sbin/apache2 -k start ├─ 35405 /usr/sbin/apache2 -k start ├─ 35406 /usr/sbin/apache2 -k start ├─ 38219 /usr/sbin/apache2 -k start ├─ 38221 /usr/sbin/apache2 -k start ├─ 82281 /usr/sbin/apache2 -k start ├─ 82286 /usr/sbin/apache2 -k start ├─148242 /usr/sbin/apache2 -k start └─188358 /usr/sbin/apache2 -k start dez 31 11:55:36 server systemd[1]: Started The Apache HTTP Server. dez 31 11:56:57 server sudo[38106]: www-data : TTY=unknown ; PWD=/stuff/www/html/admin ; USER=root ; COMMAND=/usr/local/bin/pihole status web dez 31 11:56:57 server sudo[38106]: pam_unix(sudo:session): session opened for user root by (uid=0) dez 31 11:56:57 server sudo[38106]: pam_unix(sudo:session): session closed for user root dez 31 11:57:00 server sudo[38216]: www-data : TTY=unknown ; PWD=/stuff/www/html/admin ; USER=root ; COMMAND=/usr/local/bin/pihole status web dez 31 11:57:00 server sudo[38216]: pam_unix(sudo:session): session opened for user root by (uid=0) dez 31 11:57:00 server sudo[38216]: pam_unix(sudo:session): session closed for user root dez 31 12:22:01 server sudo[82205]: www-data : TTY=unknown ; PWD=/stuff/www/html/admin ; USER=root ; COMMAND=/usr/local/bin/pihole status web dez 31 12:22:01 server sudo[82205]: pam_unix(sudo:session): session opened for user root by (uid=0) 

Источник

Оцените статью
Adblock
detector