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

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

これ以上壊れることはないと思いますか?

Signed-off-by: Izuru Yakumo <yakumo.izuru@…>

File size: 545 bytes
Line 
1#!/bin/sh
2# $TheSupernovaDuo$
3#
4# PROVIDE: mai
5# REQUIRE: DAEMON NETWORKING syslog
6# KEYWORD: shutdown
7
8
9. /etc/rc.subr
10
11name="mai"
12rcvar="mai_enable"
13
14load_rc_config $name
15
16: ${mai_enable:="NO"}
17: ${mai_config="/usr/local/etc/mai/mai.ini"}
18: ${mai_chdir="/usr/local/share/mai"}
19
20pidfile="/var/run/${name}.pid"
21command="/usr/sbin/daemon"
22procname="/usr/local/bin/${name}"
23mai_args="-f ${mai_config}"
24command_args="-S -m 3 -s info -l daemon -p ${pidfile} /usr/bin/env ${procname} ${mai_args}"
25
26required_files="${mai_config}"
27
28run_rc_command "$1"
Note: See TracBrowser for help on using the repository browser.