-
Notifications
You must be signed in to change notification settings - Fork 193
Service stops too early during shutdown #83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Adding |
As you said: RequiredBy will stuck the start is something fail.
It's not possible to have log2ram start after journactl but stop after journactl. |
No, I wanted log2ram to start before journald (which it does at the moment), and log2ram to stop after journald has stopped (which it currently does not do). At the moment log2ram does this:
This means log2ram syncs the journald logs before journald stops. When using The issue with journald failing to start if log2ram fails to start can probably be hacked around by using |
Hi, |
Since the pull have been merge, Can I close this issue ? |
I had to remove my hdd on the (debian) server because it wasn't starting as log2 ram failed... |
@MegaV0lt An old version havn't timeout on the systemd service. It's not the case since many version. Are you up-to-date ? |
No idea. I think since the required change. I was uninstalling log2ram - changing the server hardware and reinstalling the actual version. Then the problem occurred. |
Found it, required don't allow the service to stop. I will rollback until I found a better solution |
I will close this issue. The change have been rollback because making issue for many users. |
When shutting down or rebooting a machine the log2ram service will sync logs before the journald service has stopped, causing missed log messages and corrupted or uncleanly shut down errors next boot -
Last few lines that journald saves when log2ram is not used (order reversed):
Last few lines with log2ram (order reversed):
Then
dmesg
shows these errors at next boot:The text was updated successfully, but these errors were encountered: