summaryrefslogtreecommitdiff
path: root/net-misc/kyototycoon/files/kyototycoon.initd
diff options
context:
space:
mode:
authorMarcin Deranek <marcin.deranek@booking.com>2021-08-22 14:33:42 +0200
committerMarcin Deranek <marcin.deranek@booking.com>2021-08-22 14:33:42 +0200
commitc0bafea7e9a480c8a7e623ef8d673310f962bc0c (patch)
treea6b103bf1f6c34d2f8b21086bf675b66371c2529 /net-misc/kyototycoon/files/kyototycoon.initd
parent9d74d7a006b2f7f3bce833a739e47309ac3fc58f (diff)
downloadportage-c0bafea7e9a480c8a7e623ef8d673310f962bc0c.tar.gz
portage-c0bafea7e9a480c8a7e623ef8d673310f962bc0c.tar.bz2
portage-c0bafea7e9a480c8a7e623ef8d673310f962bc0c.zip
Remove obsolete/unmaintained package
Diffstat (limited to 'net-misc/kyototycoon/files/kyototycoon.initd')
-rw-r--r--net-misc/kyototycoon/files/kyototycoon.initd38
1 files changed, 0 insertions, 38 deletions
diff --git a/net-misc/kyototycoon/files/kyototycoon.initd b/net-misc/kyototycoon/files/kyototycoon.initd
deleted file mode 100644
index a7d0824..0000000
--- a/net-misc/kyototycoon/files/kyototycoon.initd
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/sbin/runscript
-
-extra_commands="configtest"
-extra_started_commands="reload"
-
-depend() {
- need net
-}
-
-start() {
- configtest || return 1
- ebegin "Starting kyoto tycoon"
- start-stop-daemon --start --user ${KT_USER}:${KT_GROUP} --exec /usr/bin/ktserver -- \
- -dmn -pid ${KT_PID} -log ${KT_LOG} ${KT_OPTS} ${KT_DB}
- eend $? "Failed to start kyoto tycoon"
-}
-
-stop() {
- configtest || return 1
- ebegin "Stopping kyoto tycoon"
- start-stop-daemon --stop --pidfile ${KT_PID}
- eend $? "Failed to stop kyoto tycoon"
- rm -f ${KT_PID}
-}
-
-reload() {
- configtest || return 1
- ebegin "Gracefully restarting kyoto tycoon"
- kill -HUP `cat ${KT_PID}` &>/dev/null
- eend $? "Failed to reload kyoto tycoon"
-}
-
-configtest() {
- if [ -z "${KT_DB}" ] || [ -z "${KT_PORT}" ] ; then
- eerror "Please check your configuration"
- eend $?
- fi
-}