diff --git a/rsyslog.service b/rsyslog.service index 9c13b1d0f0e99952c7b553181bd85909665add18..6575108003121c8eb7a5a2bef0d6ecaa8e12a97b 100644 --- a/rsyslog.service +++ b/rsyslog.service @@ -1,22 +1,23 @@ [Unit] Description=System Logging Service ;Requires=syslog.socket +Wants=network.target network-online.target +After=network.target network-online.target Documentation=man:rsyslogd(8) Documentation=https://www.rsyslog.com/doc/ [Service] Type=notify EnvironmentFile=-/etc/sysconfig/rsyslog -ExecStart=/usr/sbin/rsyslogd -n $SYSLOGD_OPTIONS -ExecReload=/usr/bin/kill -HUP $MAINPID +ExecStart=/usr/sbin/rsyslogd -n -i/var/run/rsyslogd.pid $SYSLOGD_OPTIONS +Restart=on-failure UMask=0066 StandardOutput=null Restart=on-failure - # Increase the default a bit in order to allow many simultaneous # files to be monitored, we might need a lot of fds. LimitNOFILE=16384 [Install] WantedBy=multi-user.target -;Alias=syslog.service +;Alias=syslog.service \ No newline at end of file