xorbit / LiFePO4wered-Pi

Access library, command line tool and daemon for the LiFePO4wered/Pi module
GNU General Public License v2.0
132 stars 31 forks source link

Support running in the foreground #40

Closed Jookia closed 4 years ago

Jookia commented 4 years ago

See https://github.com/xorbit/LiFePO4wered-Pi/pull/36#issuecomment-673777387 for details on why this is beneficial.

xorbit commented 4 years ago

One thing I noticed (with both the syslog code and the new print-to-stdout code) is that the shutdown messages don't reliably make it into the syslog. It's like they don't get flushed to the SD card before the system shuts down. This is nothing new, I already noticed this before. But I wondered if you have any thoughts on it, or how to fix it?

Jookia commented 4 years ago

Hmm. Is this on systemd or sysvinit? What logging daemon? I don't think there's anything wrong with the code, but maybe you're shutting down too fast or your system needs to sync logs before reboot?

On Sat, Aug 15, 2020 at 10:49:06PM -0700, Patrick Van Oosterwijck wrote:

One thing I noticed (with both the syslog code and the new print-to-stdout code) is that the shutdown messages don't reliably make it into the syslog. It's like they don't get flushed to the SD card before the system shuts down. This is nothing new, I already noticed this before. But I wondered if you have any thoughts on it, or how to fix it?

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/xorbit/LiFePO4wered-Pi/pull/40#issuecomment-674483139