diff options
author | Steve Wills <swills@FreeBSD.org> | 2015-09-10 00:45:03 +0000 |
---|---|---|
committer | Steve Wills <swills@FreeBSD.org> | 2015-09-10 00:45:03 +0000 |
commit | 231feeab320c2d79d6b596abf56230c7339610d2 (patch) | |
tree | 777cda0562b3e5d29cb5b135de0ef71e8c997559 /databases/memcached/files/memcached.in | |
parent | bc9bdd4c35e5a2579aa17064c00976a51aafa2ad (diff) | |
download | ports-231feeab320c2d79d6b596abf56230c7339610d2.tar.gz ports-231feeab320c2d79d6b596abf56230c7339610d2.zip |
Notes
Diffstat (limited to 'databases/memcached/files/memcached.in')
-rw-r--r-- | databases/memcached/files/memcached.in | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/databases/memcached/files/memcached.in b/databases/memcached/files/memcached.in index 38252ace2a8a..15c8b7efb07b 100644 --- a/databases/memcached/files/memcached.in +++ b/databases/memcached/files/memcached.in @@ -28,6 +28,9 @@ rcvar=memcached_enable _piddir="/var/run/memcached" pidfile="${_piddir}/memcached.pid" +: ${memcached_enable="NO"} +: ${memcached_user="nobody"} + load_rc_config ${name} if [ -n "$2" ]; then @@ -35,6 +38,7 @@ if [ -n "$2" ]; then if [ -n "${memcached_profiles}" ]; then pidfile="${_piddir}/memcached.${profile}.pid" eval memcached_enable="\${memcached_${profile}_enable:-${memcached_enable}}" + eval memcached_user="\${memcached_${profile}_user:-${memcached_user}}" eval memcached_flags="\${memcached_${profile}_flags:-${memcached_flags}}" eval memcached_post_start="\${memcached_${profile}_post_start:-${memcached_post_start}}" else @@ -98,9 +102,6 @@ memcached_poststop() fi } -: ${memcached_enable="NO"} -: ${memcached_user="nobody"} - command=%%PREFIX%%/bin/memcached command_args="-d -u ${memcached_user} -P ${pidfile} " |