mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 23:18:42 +01:00
memcached: import from packages, add myself as the maintainer
This adds the memcached package from the old svn package fee. I adopt the licensing information an will maintain the package in the future. This request also updates memcached to the last stable version 1.4.20. Building was testet with target x86_64, ar71xx and avr32 Signed-off-by: Thomas Heil <heil@terminal-consulting.de>
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2010-2011 OpenWrt.org
|
||||
|
||||
START=80
|
||||
|
||||
start_instance () {
|
||||
local section="$1"
|
||||
|
||||
config_get user "$section" user
|
||||
config_get maxconn "$section" maxconn
|
||||
config_get listen "$section" listen
|
||||
config_get port "$section" port
|
||||
config_get memory "$section" memory
|
||||
|
||||
service_start /usr/bin/memcached -d -u ${user:-nobody} \
|
||||
-c ${maxconn:-1024} -l ${listen:-0.0.0.0} \
|
||||
-p ${port:-11211} -U ${port:-11211} -m ${memory:-64}
|
||||
}
|
||||
|
||||
start() {
|
||||
config_load 'memcached'
|
||||
config_foreach start_instance 'memcached'
|
||||
}
|
||||
|
||||
stop() {
|
||||
service_stop /usr/bin/memcached
|
||||
}
|
||||
Reference in New Issue
Block a user