Commit d7941bd0 authored by Łukasz Nowak's avatar Łukasz Nowak Committed by Łukasz Nowak

software/nextcloud: Switch to monitor-promise-base

parent 4bbc4921
...@@ -26,4 +26,4 @@ md5sum = fbc5eacda192cb02c8d9861cb628fe6f ...@@ -26,4 +26,4 @@ md5sum = fbc5eacda192cb02c8d9861cb628fe6f
[template-nextcloud-instance] [template-nextcloud-instance]
filename = nextcloud-instance.cfg.in filename = nextcloud-instance.cfg.in
md5sum = 59e9c65e655cf9cf144d97dd36863ede md5sum = 426df55e81725cd7faa408d3cd93558e
...@@ -12,7 +12,7 @@ backup = ${directory:backup}/nextcloud ...@@ -12,7 +12,7 @@ backup = ${directory:backup}/nextcloud
[service-redis] [service-redis]
recipe = slapos.cookbook:redis.server recipe = slapos.cookbook:redis.server
wrapper = ${directory:services}/redis wrapper = ${directory:services}/redis
promise_wrapper = ${directory:promises}/redis promise_wrapper = ${directory:bin}/redis-promise
server_dir = ${nc-directory:redis} server_dir = ${nc-directory:redis}
config_file = ${directory:etc}/redis.conf config_file = ${directory:etc}/redis.conf
log_file = ${nc-directory:redis-log}/redis.log log_file = ${nc-directory:redis-log}/redis.log
...@@ -26,6 +26,12 @@ server_bin = {{ redis_bin }} ...@@ -26,6 +26,12 @@ server_bin = {{ redis_bin }}
depend = depend =
${logrotate-entry-redis:recipe} ${logrotate-entry-redis:recipe}
[redis-promise]
<= monitor-promise-base
module = check_command_execute
name = redis.py
config-command = ${service-redis:promise_wrapper}
[logrotate-entry-redis] [logrotate-entry-redis]
<= logrotate-entry-base <= logrotate-entry-base
name = redis name = redis
...@@ -83,6 +89,7 @@ context = ...@@ -83,6 +89,7 @@ context =
mode = 744 mode = 744
depends = depends =
${service-redis:recipe} ${service-redis:recipe}
${redis-promise:recipe}
${nextcloud-cron:recipe} ${nextcloud-cron:recipe}
${nextcloud-optimize:recipe} ${nextcloud-optimize:recipe}
${nextcloud-apache-httpd:recipe} ${nextcloud-apache-httpd:recipe}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment