diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-10-13 21:54:24 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-10-13 21:54:24 +0100 |
commit | da491770b9ba5f179e18db461c49cb6f1ccf0e1f (patch) | |
tree | d3e34a8bd906741ab18cf69d8d4f732853e26ade /net-misc/tokyotyrant/files/tokyotyrant.initd | |
parent | ad6182343997a405079870a2fe91c4e0c6b94595 (diff) | |
parent | 5a165c60b9b8c4847067cb83b4be7da785d01f93 (diff) |
gentoo resync : 28.09.2019
Diffstat (limited to 'net-misc/tokyotyrant/files/tokyotyrant.initd')
-rw-r--r-- | net-misc/tokyotyrant/files/tokyotyrant.initd | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/net-misc/tokyotyrant/files/tokyotyrant.initd b/net-misc/tokyotyrant/files/tokyotyrant.initd deleted file mode 100644 index f754d4901bfc..000000000000 --- a/net-misc/tokyotyrant/files/tokyotyrant.initd +++ /dev/null @@ -1,38 +0,0 @@ -#!/sbin/openrc-run - -extra_commands="configtest reload" - -depend() { - need net -} - -start() { - configtest || return 1 - ebegin "Starting tokyo tyrant" - start-stop-daemon --start --exec /usr/bin/ttserver -- \ - -pid ${TT_PID} -dmn -host ${TT_HOST} -log ${TT_LOG} \ - -port ${TT_PORT} ${TT_OPTS} ${TT_DB} - eend $? "Failed to start tokyo tyrant" -} - -stop() { - configtest || return 1 - ebegin "Stopping tokyo tyrant" - start-stop-daemon --stop --pidfile ${TT_PID} - eend $? "Failed to stop tokyo tyrant" - rm -f ${TT_PID} -} - -reload() { - configtest || return 1 - ebegin "Gracefully restarting tokyo tyrant" - kill -HUP `cat ${TT_PID}` &>/dev/null - eend $? "Failed to reload tokyo tyrant" -} - -configtest() { - if [ -z "${TT_DB}" ] || [ -z "${TT_PORT}" ] ; then - eerror "Please check your configuration" - eend $? - fi -} |