Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
contrib/systemd/syslog-ng@service: added templated service file
contrib/systemd/syslog-ng@default: added template parameter file contrib/systemd/syslog-ng.service: removed old service file * introduced multi-instance support to systemd service file * WARNING: packaging/installer scripts will have to be updated * parameter files have to be installed to /etc/default or /etc/sysconfig * parameter file have to be named like: syslog-ng@instancename * service installation looks like: systemctl enable syslog-ng@default * service template has to be installed to /usr/lib/systemd/system Signed-off-by: Janos SZIGETVARI <jszigetvari@gmail.com>
- Loading branch information
1 parent
c6bf2e2
commit 649d115
Showing
4 changed files
with
25 additions
and
18 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[Unit] | ||
Description=System Logger Daemon "%i" instance | ||
Documentation=man:syslog-ng(8) | ||
Conflicts=emergency.service emergency.target | ||
|
||
[Service] | ||
Type=notify | ||
EnvironmentFile=-/etc/default/syslog-ng@%i | ||
EnvironmentFile=-/etc/sysconfig/syslog-ng@%i | ||
ExecStart=/usr/sbin/syslog-ng -F $OTHER_OPTIONS --cfgfile $CONFIG_FILE --control $CONTROL_FILE --persist-file $PERSIST_FILE --pidfile $PID_FILE | ||
ExecReload=/bin/kill -HUP $MAINPID | ||
StandardOutput=journal | ||
StandardError=journal | ||
Restart=on-failure | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CONFIG_FILE=/etc/syslog-ng.conf | ||
PERSIST_FILE=/var/lib/syslog-ng/syslog-ng.persist | ||
CONTROL_FILE=/var/lib/syslog-ng/syslog-ng.ctl | ||
PID_FILE=/var/run/syslog-ng.pid | ||
OTHER_OPTIONS="--enable-core" |