Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 351816 Details for
Bug 425132
dev-db/riak - highly scalable, schema-free document-oriented database
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
dev-db/riak/files/riak-1.3.1.initd
riak-1.3.1.initd (text/plain), 2.23 KB, created by
Matthias Krull
on 2013-06-24 16:23:10 UTC
(
hide
)
Description:
dev-db/riak/files/riak-1.3.1.initd
Filename:
MIME Type:
Creator:
Matthias Krull
Created:
2013-06-24 16:23:10 UTC
Size:
2.23 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2013 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >extra_started_commands="reload" > >depend() { > need net >} > >start() { > ebegin "Start ${SVCNAME}" > > # warn on low ulimit > local ulimit=$(ulimit -n) > if [ $ulimit -lt 4096 ]; then > ewarn "Current ulimit -n is $ulimit. 4096 is the recommended minimum." > fi > > start-stop-daemon --background --start --user "${RIAK_USER}" \ > --pidfile "${RIAK_PIDFILE}" \ > --exec "${RIAK_EXEC}" -- start > > # wait for riak to start up before creating pidfile > while [ ${RIAK_STARTUP_TIMEOUT} -ge 0 ]; do > # ping riak > local res=$(${RIAK_EXEC} ping) > > # on pong it has fully started > if [[ $res =~ "pong" ]]; then > while [ ${RIAK_STARTUP_TIMEOUT} -ge 0 ]; do > # get the beam's pid > local beam=$(pidof "${RIAK_ERTS_PATH}/bin/beam.smp") > # retry if multiple pids are returned > if [[ $beam =~ ' ' ]]; then > # let pidfile creation time out > RIAK_STARTUP_TIMEOUT=$(expr "${RIAK_STARTUP_TIMEOUT}" - 1) > sleep 1 > else > # create pidfile and be done > [ $beam ] && echo -n $beam > "${RIAK_PIDFILE}" > break > fi > done > break > else > # let pidfile creation time out > RIAK_STARTUP_TIMEOUT=$(expr "${RIAK_STARTUP_TIMEOUT}" - 1) > sleep 1 > fi > done > > [ -f ${RIAK_PIDFILE} ] || ewarn "Slow startup. No pidfile created." > > eend $? >} > >stop() { > ebegin "Stopping ${SVCNAME}" > local beam="${RIAK_ERTS_PATH}/bin/beam.smp" > > # if riak stop fails use more force > if [ $(${RIAK_EXEC} stop 2>&1 > /dev/null) ]; then > start-stop-daemon \ > --stop --quiet --retry=TERM/30/KILL/5 \ > --user ${RIAK_USER} --exec $beam > [ -f "${RIAK_PIDFILE}" ] && unlink "${RIAK_PIDFILE}" > else > [ -f "${RIAK_PIDFILE}" ] && unlink "${RIAK_PIDFILE}" > fi > > einfo "Stopping epmd" > local epmd=$(pidof ${RIAK_ERTS_PATH}/bin/epmd) > [[ $epmd ]] && kill $epmd > > eend $? >} > >reload() { > ebegin "Reloading ${SVCNAME}" > ${RIAK_EXEC} restart 2>&1 > /dev/null > eend $? >} > >status() { > local res=$(${RIAK_EXEC} ping) > local epmd=$(pidof ${RIAK_ERTS_PATH}/bin/epmd) > if [[ $res =~ "pong" ]]; then > einfo "status: started" > elif [ -f "${RIAK_PIDFILE}" ]; then > eerror "status: crashed" > else > # cleanup > [ $epmd ] && kill $epmd > einfo "status: stopped" > fi >}
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 Raw
Actions:
View
Attachments on
bug 425132
:
349732
|
349734
|
349736
|
349738
|
350960
|
350962
|
350964
|
350966
|
351228
|
351230
|
351232
|
351234
|
351510
|
351520
|
351522
|
351816
|
351818
|
352852
|
354924
|
354926
|
354928
|
355352
|
355354
|
355356
|
356736
|
356738
|
356740
|
356742