Skip to content

Commit

Permalink
databases/redis: add requested changes by @fichtner (opnsense#379)
Browse files Browse the repository at this point in the history
* fix up some stuff in redis
* don't allow to disable the TCP Port
  • Loading branch information
fabianfrz authored Nov 18, 2017
1 parent a26e950 commit 201ef5e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<label>Listen Interfaces</label>
<type>select_multiple</type>
<style>selectpicker</style>
<help>Let the Redis server listen on non localhost interfaces.</help>
<help>Let the Redis server listen on non-localhost interfaces.</help>
</field>
<field>
<id>redis.general.protected_mode</id>
Expand All @@ -24,7 +24,7 @@
<id>redis.general.port</id>
<label>TCP Listen Port</label>
<type>text</type>
<help>Enter a valid TCP port or 0 to disable the TCP port.</help>
<help>Enter a valid TCP port.</help>
</field>
<field>
<id>redis.general.log_level</id>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<Required>Y</Required>
</enabled>
<listen type="InterfaceField">
<default>1</default>
<Required>N</Required>
<multiple>Y</multiple>
</listen>
Expand All @@ -17,11 +16,11 @@
<Required>Y</Required>
</protected_mode>
<port type="IntegerField">
<MinimumValue>0</MinimumValue>
<MinimumValue>1</MinimumValue>
<MaximumValue>65536</MaximumValue>
<Required>N</Required>
<default>6379</default>
<ValidationMessage>This must be a valid port number or 0.</ValidationMessage>
<ValidationMessage>This must be a valid port number.</ValidationMessage>
</port>
<log_level type="OptionField">
<Required>Y</Required>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type:script
message:starting redis

[stop]
command:/usr/local/etc/rc.d/redis onestop
command:/usr/local/etc/rc.d/redis stop
parameters:
type:script
message:stopping redis
Expand Down

0 comments on commit 201ef5e

Please sign in to comment.