View previous topic :: View next topic |
Author |
Message |
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
Posted: Fri Sep 29, 2017 7:31 pm Post subject: Service was in default runlevel but didn't start |
|
|
According to uptime, my server has been up for 18 hours, explaining why I haven't been getting mails via postfix/dovecot. But despite those two services being in my default runlevel, they were apparently not started when my server rebooted. (It's a hosted dedicated, it wasn't me that rebooted it, otherwise I would have checked for this stuff as part of my bootup check.)
Why would a service not be running if it's in the default runlevel? _________________ decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54212 Location: 56N 3W
|
Posted: Fri Sep 29, 2017 8:00 pm Post subject: |
|
|
audiodef,
It failed to start for some reason, or something it depends on failed to start.
Poke around in /run/openrc/* and see what you find.
Try starting the services manually. That may give useful information.
Stop the services Then start them. Any errors on the command line, dmesg or the service log files (if they have them)?
Lastly, ensure the services are stopped, stop and zap them if you are not sure.
Run the services in the foreground (see the man pages) any problems will be reported in the console. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3129
|
Posted: Sat Sep 30, 2017 9:50 am Post subject: |
|
|
How about:
Code: | service postfix status || send_me_a_message_via_a_seer_for_email_is_broken |
Service status does report using both, standard output AND error code, and the latter is easily used in scripts. |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
|