Comments (5)
hmm what's wrong with the existing journalctl --sync? what am i missing?
from systemd.
@poettering AFAIK that doesn't seem to do anything with logs that haven't been read from the service's file descriptor(s) yet? If I call journalctl --sync
before journald reads the logs from the unit's file descriptor (or /run/systemd/journal/socket), then journalctl --sync
doesn't actually guarantee those logs will be written to the journal?
If I currently do something like this
systemctl start oneshot-unit-that-logs-to-journal
journalctl --sync
journalctl --grep "log-message-from-oneshot-unit-that-logs-to-journal"
The journalctl grep might return an entry, or it might not return any entries at all. What I want is a way to ensure that that call to journalctl --grep
will contain the logs from the oneshot service.
from systemd.
hmm, the idea was that the --sync stuff does exactly what you are looking for here, i.e. it only returns once every stream was fully processed.
from systemd.
Yeah, currently journalctl --sync
does not check stream, and there may be some pending data.
from systemd.
-> #32617.
from systemd.
Related Issues (20)
- OpenFile still gives logging errors when opening file while using option graceful
- Using radeon xorg driver with v256 hangs during suspend HOT 4
- homed does not honor uid on other systems HOT 5
- IPv6 Compliance Intermittent Failures
- IPv6 Compliance RFC4861: Default Router Switch (Hosts Only) [v6LC.2.2.11] - Incorrect nexthop HOT 9
- Improve Documentation or Error message for relative file paths for `journalctl --file=<absolute_path>` argument HOT 1
- resolved: TXT records vanish if /etc/hosts entry is added HOT 5
- NetworkManager failed to start and cannot login when boot again HOT 1
- docs: Where= in systemd.mount can be not a directory HOT 2
- IOAccounting values not reported correctly in systemctl status HOT 2
- systemd 256 user instance not working on WSL. HOT 1
- IPv6 Routes installed via DHCP-PD are not removed on service restart, causing incorrect next-hop duplicates HOT 2
- When docked and lid closed, entering disk-encryption passphrase too slowly causes suspend during startup
- `systemd-oomd` doesn't seem to kill processes due to `ManagedOOMMemoryPressureLimit` HOT 1
- user does not get terminated after linger is disabled HOT 2
- /loader/credentials: Embedded credential name does not match filename HOT 1
- systemd Credential mechanism to allow custom credential keys to be shared among different machines HOT 7
- Boot counting not working if unsuffixed config exists
- systemd-journald takes incredibly long to start HOT 7
- Systemd doesn't create alias symlinks according to its own rules HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from systemd.