influxdata / influxdb-relay

Service to replicate InfluxDB data for high availability
MIT License
854 stars 349 forks source link

Align systemd logging setup to upstart #55

Closed kornicameister closed 7 years ago

kornicameister commented 7 years ago

In init.sh there is descriptors' redirection implemented for both STDOUT and STDERR, however that is missing from systemd.

Added similar redirection to systemd with usage of environment variables.

kornicameister commented 7 years ago

@nathanielc would you mind reviewing that ?

PS: I've picked someone who accepted one of the PRs before. Hope you don't mind :)

nathanielc commented 7 years ago

@kornicameister If you are using systemd then the logs should go the journal. If on your systems you wish to do something different that is fine, you can override the service files, but for the generic service unit we provide it will use the journal. Thanks