-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rearrange rsyslog and logshipper deps in systemd
Also, create the fifo on demand, with correct security context. Finally works.
- Loading branch information
1 parent
c677026
commit 98f8385
Showing
2 changed files
with
9 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
[Unit] | ||
Description=Conjur log shipping service | ||
Documentation=https://developer.conjur.net | ||
RequiresOverridable=rsyslog.service | ||
Wants=rsyslog.service | ||
Before=rsyslog.service | ||
|
||
[Service] | ||
ExecStartPre=-/bin/rm /var/run/logshipper | ||
ExecStartPre=/bin/mkfifo --context --mode 0460 /var/run/logshipper | ||
ExecStartPre=/bin/chown logshipper /var/run/logshipper | ||
ExecStart=/usr/sbin/logshipper -n /var/run/logshipper | ||
Restart=always | ||
User=logshipper | ||
Group=conjur | ||
PermissionsStartOnly=true | ||
|
||
[Install] | ||
WantedBy=rsyslog.target | ||
RequiredBy=rsyslog.service |
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