darkstat: [18.06] procd init script and enabling additional parameters

This is the same change as the one on master
This is to change the init script to a procd init script
This also enable some additional parameters in the binary that
were present but not enabled:
The export file (option export_file)
The import file (option import_file)
The daylog (option daylog_file)
These are disabled by default.  Also, the option to run as a daemon
is removed, as not compatible with procd.

There is no change in the binary.

Signed-off-by: Jean-Michel Lacroix <lacroix@lepine-lacroix.info>
This commit is contained in:
Jean-Michel Lacroix
2018-11-19 18:44:13 -05:00
parent b6f6df1d77
commit 8643915bbd
3 changed files with 67 additions and 65 deletions
+5 -4
View File
@@ -1,13 +1,12 @@
config darkstat
option interface 'lan'
option syslog false
option verbose true
option no_daemon false
option verbose false
option no_promisc false
option no_dns false
option no_macs false
option no_lastseen false
# option httpaddr '0.0.0.0'
option httpaddr '0.0.0.0'
# option httpport '667'
# option network_filter 'not (src net 192.168.1 and dst net 192.168.1)'
# option network_netmask '192.168.1.0/255.255.255.0'
@@ -17,4 +16,6 @@ config darkstat
# option ports_max '60'
# option ports_keep '30'
# option highest_port '65534'
# option export_file 'darkstat_export.log'
# option import_file 'darkstat_export.log'
# option daylog_file 'darkstat_daylog.log'