Blob Blame Raw
diff -urp suricata-4.1.5.orig/etc/suricata.service.in suricata-4.1.5/etc/suricata.service.in
--- suricata-4.1.5.orig/etc/suricata.service.in	2019-09-23 07:44:03.000000000 -0400
+++ suricata-4.1.5/etc/suricata.service.in	2019-09-25 17:40:27.014256845 -0400
@@ -1,12 +1,13 @@
 # Sample Suricata systemd unit file.
 [Unit]
 Description=Suricata Intrusion Detection Service
-After=syslog.target network-online.target
+After=syslog.target network-online.target systemd-tmpfiles-setup.service
+Documentation=man:suricata(1)
 
 [Service]
 # Environment file to pick up $OPTIONS. On Fedora/EL this would be
 # /etc/sysconfig/suricata, or on Debian/Ubuntu, /etc/default/suricata.
-#EnvironmentFile=-/etc/sysconfig/suricata
+EnvironmentFile=-/etc/sysconfig/suricata
 #EnvironmentFile=-/etc/default/suricata
 ExecStartPre=/bin/rm -f @e_rundir@suricata.pid
 ExecStart=/sbin/suricata -c @e_sysconfdir@suricata.yaml --pidfile @e_rundir@suricata.pid $OPTIONS