TokyoTyrantとTokyoCabinetをCentOSにインストールする方法
--- a/etc/init.d/ttservd.orig
+++ b/etc/init.d/ttservd
@@ -1,4 +1,7 @@
#! /bin/sh
+# chkconfig: 345 65 55
+# description: Startup script for the server of Tokyo Tyrant For Session
+# processname: tokyotyrant
#----------------------------------------------------------------
# Startup script for the server of Tokyo Tyrant
@@ -6,19 +9,19 @@
# configuration variables
-prog="ttservctl"
-cmd="ttserver"
+prog="ttservd"
+cmd="/usr/local/bin/ttserver"
basedir="/var/ttserver"
port="1978"
pidfile="$basedir/pid"
-#logfile="$basedir/log"
+logfile="/var/log/ttserver.log"
カテゴリ:
CentOS