source: code/trunk/rc.d/FreeBSD@ 55

Last change on this file since 55 was 55, checked in by yakumo.izuru, 17 months ago

「swagger」サポートを削除し、あちこちのバグを修正

File size: 628 bytes
RevLine 
[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
11name="simplytranslate"
12rcvar="simplytranslate_enable"
13
14load_rc_config $name
15
16: ${simplytranslate_user:="www"}
17: ${simplytranslate_enable:="NO"}
18: ${simplytranslate_config="/usr/local/etc/simplytranslate/simplytranslate.ini"}
19
20pidfile="/var/run/${name}.pid"
21command="/usr/sbin/daemon"
22procname="/usr/local/bin/${name}"
23simplytranslate_args="-f ${simplytranslate_config}"
24command_args="-S -m 3 -s info -l daemon -p ${pidfile} /usr/bin/env ${procname} ${simplytranslate_args}"
25
26run_rc_command "$1"
Note: See TracBrowser for help on using the repository browser.