]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
config: don't use hardcoded path
authorEric Leblond <eric@regit.org>
Tue, 17 Nov 2015 08:56:55 +0000 (09:56 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 17 Nov 2015 12:59:55 +0000 (13:59 +0100)
It is better to use a transformation to define the default
directory of output message instead of using an hardcoded value.
Same apply to the directory for the pid file.

suricata.yaml.in

index e19b855b065c305175a530951224508623f8ae88..d67b77f91028e04bde16b75cea7f73957d422be5 100644 (file)
@@ -50,7 +50,7 @@ host-mode: auto
 
 # Default pid file.
 # Will use this file if no --pidfile in command options.
-#pid-file: /var/run/suricata.pid
+#pid-file: @e_rundir@suricata.pid
 
 # Daemon working directory
 # Suricata will change directory to this one if provided
@@ -980,7 +980,7 @@ logging:
       # type: json
   - file:
       enabled: no
-      filename: /var/log/suricata.log
+      filename: @e_logdir@suricata.log
       # type: json
   - syslog:
       enabled: no