Last change
on this file since 55 was 55, checked in by yakumo.izuru, 17 months ago |
「swagger」サポートを削除し、あちこちのバグを修正
|
File size:
628 bytes
|
Rev | Line | |
---|
[55] | 1 | #!/bin/sh
|
---|
| 2 | # $TheSupernovaDuo$
|
---|
| 3 | #
|
---|
| 4 | # PROVIDE: simplytranslate
|
---|
| 5 | # REQUIRE: DAEMON NETWORKING syslog
|
---|
| 6 | # KEYWORD: shutdown
|
---|
| 7 |
|
---|
| 8 |
|
---|
| 9 | . /etc/rc.subr
|
---|
| 10 |
|
---|
| 11 | name="simplytranslate"
|
---|
| 12 | rcvar="simplytranslate_enable"
|
---|
| 13 |
|
---|
| 14 | load_rc_config $name
|
---|
| 15 |
|
---|
| 16 | : ${simplytranslate_user:="www"}
|
---|
| 17 | : ${simplytranslate_enable:="NO"}
|
---|
| 18 | : ${simplytranslate_config="/usr/local/etc/simplytranslate/simplytranslate.ini"}
|
---|
| 19 |
|
---|
| 20 | pidfile="/var/run/${name}.pid"
|
---|
| 21 | command="/usr/sbin/daemon"
|
---|
| 22 | procname="/usr/local/bin/${name}"
|
---|
| 23 | simplytranslate_args="-f ${simplytranslate_config}"
|
---|
| 24 | command_args="-S -m 3 -s info -l daemon -p ${pidfile} /usr/bin/env ${procname} ${simplytranslate_args}"
|
---|
| 25 |
|
---|
| 26 | run_rc_command "$1"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.