summaryrefslogtreecommitdiff
path: root/databases/tokyotyrant/files/ttserver.in
blob: ae032346b6b9ef03abef60dd9691d0498572ee4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
#
# $FreeBSD$
#
#
# PROVIDE: ttserver
# REQUIRE: DAEMON
# KEYWORD: shutdown

. /etc/rc.subr

name="ttserver"
rcvar=ttserver_enable

: ${ttserver_enable:="NO"}

command="%%PREFIX%%/bin/${name}"
pidfile="/var/run/ttserver.pid"

load_rc_config $name
: ${ttserver_flags="-dmn -pid ${pidfile}"}

run_rc_command "$1"