プロジェクトの名前を「マイ」に変更します
git-svn-id: file:///srv/svn/repo/mai/trunk@56 e410bdd4-646f-c54f-a7ce-fffcc4f439ae
This commit is contained in:
16
rc.d/FreeBSD
16
rc.d/FreeBSD
@@ -1,26 +1,26 @@
|
||||
#!/bin/sh
|
||||
# $TheSupernovaDuo$
|
||||
#
|
||||
# PROVIDE: simplytranslate
|
||||
# PROVIDE: mai
|
||||
# REQUIRE: DAEMON NETWORKING syslog
|
||||
# KEYWORD: shutdown
|
||||
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name="simplytranslate"
|
||||
rcvar="simplytranslate_enable"
|
||||
name="mai"
|
||||
rcvar="mai_enable"
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
: ${simplytranslate_user:="www"}
|
||||
: ${simplytranslate_enable:="NO"}
|
||||
: ${simplytranslate_config="/usr/local/etc/simplytranslate/simplytranslate.ini"}
|
||||
: ${mai_user:="www"}
|
||||
: ${mai_enable:="NO"}
|
||||
: ${mai_config="/usr/local/etc/mai/mai.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}"
|
||||
mai_args="-f ${mai_config}"
|
||||
command_args="-S -m 3 -s info -l daemon -p ${pidfile} /usr/bin/env ${procname} ${mai_args}"
|
||||
|
||||
run_rc_command "$1"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#!/bin/ksh
|
||||
# $TheSupernovaDuo$
|
||||
|
||||
daemon="/usr/local/bin/simplytranslate"
|
||||
daemon_flags="-f /usr/local/etc/simplytranslate/simplytranslate.ini"
|
||||
daemon="/usr/local/bin/mai"
|
||||
daemon_flags="-f /usr/local/etc/mai/mai.ini"
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
|
||||
2
rc.d/immortal.yml
Normal file
2
rc.d/immortal.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
cmd: /usr/local/bin/mai -f /usr/local/etc/mai/mai.ini
|
||||
user: www
|
||||
Reference in New Issue
Block a user