diff options
author | MATSUU Takuto <matsuu@gentoo.org> | 2010-01-18 20:24:45 +0900 |
---|---|---|
committer | MATSUU Takuto <matsuu@gentoo.org> | 2010-01-18 20:24:45 +0900 |
commit | 078198f23abab9fa5232d6b4a55d16bccbbda63f (patch) | |
tree | fe6f8915715fe01780c702de2b05e9e9c3dbeb5c /net-misc/kumofs/files | |
parent | dev-ruby/msgpack: Initial import. (diff) | |
download | matsuu-078198f23abab9fa5232d6b4a55d16bccbbda63f.tar.gz matsuu-078198f23abab9fa5232d6b4a55d16bccbbda63f.tar.bz2 matsuu-078198f23abab9fa5232d6b4a55d16bccbbda63f.zip |
net-misc/kumofs: Initial import.
Diffstat (limited to 'net-misc/kumofs/files')
-rw-r--r-- | net-misc/kumofs/files/kumo-gateway.confd | 6 | ||||
-rw-r--r-- | net-misc/kumofs/files/kumo-gateway.initd | 25 | ||||
-rw-r--r-- | net-misc/kumofs/files/kumo-manager.confd | 6 | ||||
-rw-r--r-- | net-misc/kumofs/files/kumo-manager.initd | 26 | ||||
-rw-r--r-- | net-misc/kumofs/files/kumo-server.confd | 6 | ||||
-rw-r--r-- | net-misc/kumofs/files/kumo-server.initd | 26 |
6 files changed, 95 insertions, 0 deletions
diff --git a/net-misc/kumofs/files/kumo-gateway.confd b/net-misc/kumofs/files/kumo-gateway.confd new file mode 100644 index 0000000..2024a01 --- /dev/null +++ b/net-misc/kumofs/files/kumo-gateway.confd @@ -0,0 +1,6 @@ +# /etc/conf.d/kumo-gateway: config file for /etc/init.d/kumo-gateway + +#KUMO_GATEWAY_HOSTNAME="${HOSTNAME}" + +#KUMO_GATEWAY_OPTS="-v -m manager1 -p manager2 -t 11211" +KUMO_GATEWAY_OPTS="-m ${HOSTNAME} -t 11211" diff --git a/net-misc/kumofs/files/kumo-gateway.initd b/net-misc/kumofs/files/kumo-gateway.initd new file mode 100644 index 0000000..9fedb9d --- /dev/null +++ b/net-misc/kumofs/files/kumo-gateway.initd @@ -0,0 +1,25 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +KUMO_GATEWAY_HOSTNAME="${KUMO_GATEWAY_HOSTNAME:-${HOSTNAME}}" +KUMO_GATEWAY_EXEC="${KUMO_GATEWAY_EXEC:-/usr/bin/kumo-gateway}" +KUMO_GATEWAY_PID="${KUMO_GATEWAY_PID:-/var/run/kumo-gateway.pid}" + +depend() { + use net kumo-manager +} + +start() { + ebegin "Starting kumo-gateway" + start-stop-daemon --start --quiet --exec "${KUMO_GATEWAY_EXEC}" \ + -- -d "${KUMO_GATEWAY_PID}" ${KUMO_GATEWAY_OPTS} + eend $? +} + +stop() { + ebegin "Stopping kumo-gateway" + start-stop-daemon --stop --quiet --pidfile "${KUMO_GATEWAY_PID}" + eend $? +} diff --git a/net-misc/kumofs/files/kumo-manager.confd b/net-misc/kumofs/files/kumo-manager.confd new file mode 100644 index 0000000..fc2b6f3 --- /dev/null +++ b/net-misc/kumofs/files/kumo-manager.confd @@ -0,0 +1,6 @@ +# /etc/conf.d/kumo-manager: config file for /etc/init.d/kumo-manager + +#KUMO_MANAGER_HOSTNAME="${HOSTNAME}" + +#KUMO_MANAGER_OPTS="-p manager2" +KUMO_MANAGER_OPTS="" diff --git a/net-misc/kumofs/files/kumo-manager.initd b/net-misc/kumofs/files/kumo-manager.initd new file mode 100644 index 0000000..ed80ff2 --- /dev/null +++ b/net-misc/kumofs/files/kumo-manager.initd @@ -0,0 +1,26 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +KUMO_MANAGER_HOSTNAME="${KUMO_MANAGER_HOSTNAME:-${HOSTNAME}}" +KUMO_MANAGER_EXEC="${KUMO_MANAGER_EXEC:-/usr/bin/kumo-manager}" +KUMO_MANAGER_PID="${KUMO_MANAGER_PID:-/var/run/kumo-manager.pid}" + +depend() { + use net +} + +start() { + ebegin "Starting kumo-manager" + start-stop-daemon --start --quiet --exec "${KUMO_MANAGER_EXEC}" \ + -- -l "${KUMO_MANAGER_HOSTNAME}" -d "${KUMO_MANAGER_PID}" \ + ${KUMO_MANAGER_OPTS} + eend $? +} + +stop() { + ebegin "Stopping kumo-manager" + start-stop-daemon --stop --quiet --pidfile "${KUMO_MANAGER_PID}" + eend $? +} diff --git a/net-misc/kumofs/files/kumo-server.confd b/net-misc/kumofs/files/kumo-server.confd new file mode 100644 index 0000000..fccaf08 --- /dev/null +++ b/net-misc/kumofs/files/kumo-server.confd @@ -0,0 +1,6 @@ +# /etc/conf.d/kumo-server: config file for /etc/init.d/kumo-server + +#KUMO_SERVER_HOSTNAME="${HOSTNAME}" + +#KUMO_SERVER_OPTS="-m manager1 -p manager2 -s /var/lib/kumofs/kumodb.tch" +KUMO_SERVER_OPTS="-m ${HOSTNAME} -s /var/lib/kumofs/kumodb.tch" diff --git a/net-misc/kumofs/files/kumo-server.initd b/net-misc/kumofs/files/kumo-server.initd new file mode 100644 index 0000000..4af3503 --- /dev/null +++ b/net-misc/kumofs/files/kumo-server.initd @@ -0,0 +1,26 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +KUMO_SERVER_HOSTNAME="${KUMO_SERVER_HOSTNAME:-${HOSTNAME}}" +KUMO_SERVER_EXEC="${KUMO_SERVER_EXEC:-/usr/bin/kumo-server}" +KUMO_SERVER_PID="${KUMO_SERVER_PID:-/var/run/kumo-server.pid}" + +depend() { + use net kumo-manager +} + +start() { + ebegin "Starting kumo-server" + start-stop-daemon --start --quiet --exec "${KUMO_SERVER_EXEC}" \ + -- -l "${KUMO_SERVER_HOSTNAME}" -d "${KUMO_SERVER_PID}" \ + ${KUMO_SERVER_OPTS} + eend $? +} + +stop() { + ebegin "Stopping kumo-server" + start-stop-daemon --stop --quiet --pidfile "${KUMO_SERVER_PID}" + eend $? +} |