Skip to content
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

Export for systemd ignores log flag #709

Open
ClikeX opened this issue May 4, 2018 · 5 comments
Open

Export for systemd ignores log flag #709

ClikeX opened this issue May 4, 2018 · 5 comments

Comments

@ClikeX
Copy link

ClikeX commented May 4, 2018

StandardOutput=syslog

Systemd template ignores the log location provided with foreman export. Which makes me unable to set a custom location for the process. And in turn makes the flag seem useless.

Seems like an oversight to me, or is there a particular reason why it isn't included?

@h0jeZvgoxFepBQ2C
Copy link

h0jeZvgoxFepBQ2C commented Jul 26, 2018

@ddollar Are you willing to merge a PR when I add some options to configure SystemD parameters? Are there any wishes how these options should be named?

I think something like a --systemd prefix would be nice, like

foreman export systemd --systemd-StandardOutput=/var/log/mylog.log --systemd-StandardInput=/etc/myinput 

I'm not sure how to add these parameters to the Procfile though.. Maybe something like following?

webserver1: bundle exec rake sync_task SYSTEMD_StandardInput=... SYSTEMD_StandardOutput=...

h0jeZvgoxFepBQ2C added a commit to h0jeZvgoxFepBQ2C/foreman-1 that referenced this issue Jul 26, 2018
@h0jeZvgoxFepBQ2C
Copy link

I've created a PR for this, by adding log and error_log options - feel free to give feedback or merge :)

@andrewmcodes
Copy link

@ClikeX is this still an issue?

@simptive
Copy link

Of-course, still an issue.

@ClikeX
Copy link
Author

ClikeX commented Jan 26, 2021

@andrewmcodes In the end our team ended up not using the systemd logs as much as initially intended. So yeah, I guess this is still an issue if you really want systemd to handle your logs.

It seems like @h0jeZvgoxFepBQ2C was nearly finished with #717.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants