Skip to content

Commit

Permalink
Read configuration variables from sysconfig
Browse files Browse the repository at this point in the history
Both directories /etc/sysconfig and /etc/default are searched for by
systemd and if syslog-ng exists it will be used for extracting env
variables. This should cover debian and redhat based systems and is
convenient to migrate from sysvinit to systemd
  • Loading branch information
faxm0dem committed Jul 31, 2015
1 parent 7274f30 commit 6447322
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contrib/systemd/syslog-ng.service
Expand Up @@ -6,6 +6,8 @@ Documentation=man:syslog-ng(8)
Type=notify
ExecStart=/usr/sbin/syslog-ng -F
ExecReload=/bin/kill -HUP $MAINPID
EnvironmentFile=-/etc/default/syslog-ng
EnvironmentFile=-/etc/sysconfig/syslog-ng
StandardOutput=journal
StandardError=journal
Restart=on-failure
Expand Down

0 comments on commit 6447322

Please sign in to comment.