FreeBSD Bugzilla – Attachment 162457 Details for
Bug 204025
databases/redis: Add redis-sentinel rc.d script
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
redis_sentinel.diff
patch_redis_sentinel.diff (text/plain), 1.59 KB, created by
Emmanuel Vadot
on 2015-10-26 09:09:44 UTC
(
hide
)
Description:
redis_sentinel.diff
Filename:
MIME Type:
Creator:
Emmanuel Vadot
Created:
2015-10-26 09:09:44 UTC
Size:
1.59 KB
patch
obsolete
>diff --git a/databases/redis/Makefile b/databases/redis/Makefile >index d9b8332..be8f299 100644 >--- a/databases/redis/Makefile >+++ b/databases/redis/Makefile >@@ -2,6 +2,7 @@ > # $FreeBSD$ > > PORTNAME= redis >+PORTREVISION= 1 > DISTVERSION= 3.0.5 > CATEGORIES= databases > MASTER_SITES= http://download.redis.io/releases/ >@@ -56,7 +57,7 @@ CONFLICTS?= redis-devel-3.* > > USES+= gmake > MAKE_ENV= "V=yo" >-USE_RC_SUBR= redis >+USE_RC_SUBR= redis sentinel > BIN_FILES= redis-benchmark redis-check-aof redis-check-dump \ > redis-cli redis-sentinel redis-server > >diff --git a/databases/redis/files/sentinel.in b/databases/redis/files/sentinel.in >new file mode 100644 >index 0000000..088f438 >--- /dev/null >+++ b/databases/redis/files/sentinel.in >@@ -0,0 +1,39 @@ >+#!/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"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 204025
: 162457