-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
main: add flag to redirect to syslog
Relying on environment variables to determine whether logs should be redirected to syslog/journald is unreliable. For example, desktop environments may be started as systemd transient services with systemd-cat and INVOCATION_ID may be present in the environment variables without the user/developer having any control over it. Instead of trying to guess in which context grout is executed, add a new --syslog flag that will explicitly redirect logs to syslog. Signed-off-by: Robin Jarry <[email protected]>
- Loading branch information
Showing
5 changed files
with
15 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
# vim: ft=sh | ||
|
||
# Add grout command line flags here and restart grout.service. | ||
GROUT_OPTS='' | ||
GROUT_OPTS='--syslog' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters