Skip to content

Commit

Permalink
databases/redis: migrate to NAME_setup use
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Aug 18, 2022
1 parent d724f26 commit d019131
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion databases/redis/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PLUGIN_NAME= redis
PLUGIN_VERSION= 1.1
PLUGIN_REVISION= 1
PLUGIN_REVISION= 2
PLUGIN_COMMENT= Redis DB
PLUGIN_DEPENDS= redis
PLUGIN_MAINTAINER= [email protected]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[start]
command:/usr/local/opnsense/scripts/redis/setup.sh;/usr/local/etc/rc.d/redis start
command:/usr/local/etc/rc.d/redis start
parameters:
type:script
message:starting redis
Expand All @@ -11,19 +11,19 @@ type:script
message:stopping redis

[restart]
command:/usr/local/opnsense/scripts/redis/setup.sh;/usr/local/etc/rc.d/redis restart
command:/usr/local/etc/rc.d/redis restart
parameters:
type:script
message:restarting redis

[status]
command:/usr/local/etc/rc.d/redis status;exit 0
command:/usr/local/etc/rc.d/redis status; exit 0
parameters:
type:script_output
message:request redis status

[resetdb]
command:/usr/local/etc/rc.d/redis stop;rm -rf /var/db/redis
command:/usr/local/etc/rc.d/redis stop; rm -rf /var/db/redis
parameters:
type:script
message:remove all databases
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% if helpers.exists('OPNsense.redis.general.enabled') and OPNsense.redis.general.enabled == '1' %}
redis_var_script="/usr/local/opnsense/scripts/redis/setup.sh"
redis_setup="/usr/local/opnsense/scripts/redis/setup.sh"
redis_enable="YES"
{% else %}
redis_enable="NO"
Expand Down

0 comments on commit d019131

Please sign in to comment.