openwrt_archive/net/hsflowd/patches/300-config_files_path.patch

17 lines
796 B
Diff

diff -Nurb a/src/Linux/hsflowd.h b/src/Linux/hsflowd.h
--- a/src/Linux/hsflowd.h 2012-03-01 18:16:09.000000000 +0100
+++ b/src/Linux/hsflowd.h 2012-03-18 18:56:58.689852282 +0100
@@ -72,9 +72,9 @@
#define HSP_DAEMON_NAME "hsflowd"
#define HSP_DEFAULT_PIDFILE "/var/run/hsflowd.pid"
#define HSP_DEFAULT_CONFIGFILE "/etc/hsflowd.conf"
-#define HSP_DEFAULT_OUTPUTFILE "/etc/hsflowd.auto"
-#define HSP_DEFAULT_VMSTORE_FILE "/etc/hsflowd.data"
-#define HSP_DEFAULT_CRASH_FILE "/etc/hsflowd.crash"
+#define HSP_DEFAULT_OUTPUTFILE "/var/run/hsflowd.auto"
+#define HSP_DEFAULT_VMSTORE_FILE "/var/run/hsflowd.data"
+#define HSP_DEFAULT_CRASH_FILE "/var/run/hsflowd.crash"
/* Numbering to avoid clash. See http://www.sflow.org/developers/dsindexnumbers.php */
#define HSP_DEFAULT_PHYSICAL_DSINDEX 1