-
Notifications
You must be signed in to change notification settings - Fork 38
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
What needs to be done on a non-systemd system? #108
Comments
I looked into a bit and it's literally only one line: line 42 calling systemd-cat. Just change that to w/e sends logs to syslog for you. I think @wesbarnett If you'd like, I could make a PR for you. I'd simply add the command |
don't systemd already handles logging from stdout/stderr? |
I do not know, but assuming that systemd does, my guess is that @wesbarnett wanted systemd to log it with the specified tag "snap-sync" presumably to make it easier to grep for problems. Otherwise (again, just guessing) systemd doesn't log it with any clear distinction. |
upon further thought, why would it log to systemd at all? isn't printing out of stderr enough? |
That's a good question. I think printing to stderr might get garbled with stdout, but redirecting to a separate log file makes the most sense to me in terms of keeping the script init system agnostic. |
stderr and stdout won't affect each other, what do you mean? |
... good catch, had a brain fart there. I think my rationale was that it would be outputted on the terminal with the stdout, but you could easily just redirect stderr to a log file while keeping stdout on the terminal |
Hi, I want to use this on an non-systemd system, any pointers as to areas I need to change to make it not depend on systemd?
The text was updated successfully, but these errors were encountered: