summaryrefslogtreecommitdiff
path: root/databases/redis6/files/sentinel.in
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-09-30 01:35:33 +0200
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-09-30 04:22:48 +0200
commit0d94aec254501d4fffcf5c882259de1392b0e2bc (patch)
tree77918a7f375e1a455c3e5efcc569e6445310d614 /databases/redis6/files/sentinel.in
parentdatabases/mongodb42: Remove expired port (diff)
databases/redis6: Remove expired port
2023-09-30 databases/redis6: Has reached its EoL. Please migrate to newer version.
Diffstat (limited to 'databases/redis6/files/sentinel.in')
-rw-r--r--databases/redis6/files/sentinel.in39
1 files changed, 0 insertions, 39 deletions
diff --git a/databases/redis6/files/sentinel.in b/databases/redis6/files/sentinel.in
deleted file mode 100644
index 088f4382fc06..000000000000
--- a/databases/redis6/files/sentinel.in
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/sh
-
-# PROVIDE: sentinel
-# REQUIRE: LOGIN
-# BEFORE: securelevel
-# KEYWORD: shutdown
-
-# Add the following line to /etc/rc.conf to enable `sentinel':
-#
-#sentinel_enable="YES"
-#
-
-. /etc/rc.subr
-
-name="sentinel"
-rcvar="${name}_enable"
-
-command="/usr/local/bin/redis-sentinel"
-pidfile="/var/run/redis/$name.pid"
-
-# read configuration and set defaults
-load_rc_config "$name"
-: ${sentinel_enable="NO"}
-: ${sentinel_user="redis"}
-: ${sentinel_config="/usr/local/etc/$name.conf"}
-
-command_args="${sentinel_config} --daemonize yes --pidfile ${pidfile}"
-required_files="${sentinel_config}"
-start_precmd="${name}_checks"
-restart_precmd="${name}_checks"
-
-sentinel_checks()
-{
- if [ x`id -u ${sentinel_user}` != x`stat -f %u ${sentinel_config}` ]; then
- err 1 "${sentinel_config} must be owned by user ${sentinel_user}"
- fi
-}
-
-run_rc_command "$1"