Last change
on this file since 68 was 67, checked in by yakumo.izuru, 16 months ago |
Fix bugs, many other changes
Signed-off-by: Izuru Yakumo <yakumo.izuru@…>
|
File size:
559 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 |
|
---|
11 | name="mai"
|
---|
12 | rcvar="mai_enable"
|
---|
13 |
|
---|
14 | load_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 |
|
---|
20 | pidfile="/var/run/${name}.pid"
|
---|
21 | command="/usr/sbin/daemon"
|
---|
22 | procname="/usr/local/bin/${name}"
|
---|
23 | mai_args="-f ${mai_config} -u www -g www"
|
---|
24 | command_args="-S -m 3 -s info -l daemon -p ${pidfile} /usr/bin/env ${procname} ${mai_args}"
|
---|
25 |
|
---|
26 | required_files="${mai_config}"
|
---|
27 |
|
---|
28 | run_rc_command "$1"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.