「swagger」サポートを削除し、あちこちのバグを修正
git-svn-id: file:///srv/svn/repo/mai/trunk@55 e410bdd4-646f-c54f-a7ce-fffcc4f439ae
This commit is contained in:
26
rc.d/FreeBSD
Normal file
26
rc.d/FreeBSD
Normal file
@@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
# $TheSupernovaDuo$
|
||||
#
|
||||
# PROVIDE: simplytranslate
|
||||
# REQUIRE: DAEMON NETWORKING syslog
|
||||
# KEYWORD: shutdown
|
||||
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name="simplytranslate"
|
||||
rcvar="simplytranslate_enable"
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
: ${simplytranslate_user:="www"}
|
||||
: ${simplytranslate_enable:="NO"}
|
||||
: ${simplytranslate_config="/usr/local/etc/simplytranslate/simplytranslate.ini"}
|
||||
|
||||
pidfile="/var/run/${name}.pid"
|
||||
command="/usr/sbin/daemon"
|
||||
procname="/usr/local/bin/${name}"
|
||||
simplytranslate_args="-f ${simplytranslate_config}"
|
||||
command_args="-S -m 3 -s info -l daemon -p ${pidfile} /usr/bin/env ${procname} ${simplytranslate_args}"
|
||||
|
||||
run_rc_command "$1"
|
||||
Reference in New Issue
Block a user