Browse Source

Add rsyslogd service

master
Dashie der otter 2 years ago
parent
commit
49acf3294d
Signed by: Dashie <dashie@sigpipe.me> GPG Key ID: C2D57B325840B755
2 changed files with 26 additions and 0 deletions
  1. 13
    0
      conf/lutra.d/rsyslogd.service
  2. 13
    0
      conftest/lutra.d/rsyslogd.service

+ 13
- 0
conf/lutra.d/rsyslogd.service View File

@@ -0,0 +1,13 @@
[order]
WantedBy=basic.target
After=loopback.service

[service]
Description=enhanced syslogd
Type=forking
Autostart=true

ExecPreStart=if [ ! -e /dev/xconsole ]; then mknod -m 640 /dev/xconsole p; chmod root:adm /dev/xconsole; [ -x /sbin/restorecon] && /sbin/restorecon /dev/xconsole fi
ExecStart=start-stop-daemon --start --quiet --pidfile /var/run/rsyslogd.pid --exec /usr/sbin/rsyslogd
ExecStop=start-stop-daemon --stop --retry=TERM/30/KILL/5 --pidfile /var/run/rsyslogd.pid --exec /usr/sbin/rsyslogd
PIDFile=/var/run/rsyslogd.pid

+ 13
- 0
conftest/lutra.d/rsyslogd.service View File

@@ -0,0 +1,13 @@
[order]
WantedBy=basic.target
After=loopback.service

[service]
Description=enhanced syslogd
Type=forking
Autostart=true

ExecPreStart=if [ ! -e /dev/xconsole ]; then mknod -m 640 /dev/xconsole p; chmod root:adm /dev/xconsole; [ -x /sbin/restorecon] && /sbin/restorecon /dev/xconsole fi
ExecStart=start-stop-daemon --start --quiet --pidfile /var/run/rsyslogd.pid --exec /usr/sbin/rsyslogd
ExecStop=start-stop-daemon --stop --retry=TERM/30/KILL/5 --pidfile /var/run/rsyslogd.pid --exec /usr/sbin/rsyslogd
PIDFile=/var/run/rsyslogd.pid

Loading…
Cancel
Save