Last change
on this file since 70 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
|
Rev | Line | |
---|
[55] | 1 | #!/bin/sh
|
---|
| 2 | # $TheSupernovaDuo$
|
---|
| 3 | #
|
---|
[56] | 4 | # PROVIDE: mai
|
---|
[55] | 5 | # REQUIRE: DAEMON NETWORKING syslog
|
---|
| 6 | # KEYWORD: shutdown
|
---|
| 7 |
|
---|
| 8 |
|
---|
| 9 | . /etc/rc.subr
|
---|
| 10 |
|
---|
[56] | 11 | name="mai"
|
---|
| 12 | rcvar="mai_enable"
|
---|
[55] | 13 |
|
---|
| 14 | load_rc_config $name
|
---|
| 15 |
|
---|
[56] | 16 | : ${mai_enable:="NO"}
|
---|
| 17 | : ${mai_config="/usr/local/etc/mai/mai.ini"}
|
---|
[66] | 18 | : ${mai_chdir="/usr/local/share/mai"}
|
---|
[55] | 19 |
|
---|
| 20 | pidfile="/var/run/${name}.pid"
|
---|
| 21 | command="/usr/sbin/daemon"
|
---|
| 22 | procname="/usr/local/bin/${name}"
|
---|
[67] | 23 | mai_args="-f ${mai_config} -u www -g www"
|
---|
[56] | 24 | command_args="-S -m 3 -s info -l daemon -p ${pidfile} /usr/bin/env ${procname} ${mai_args}"
|
---|
[55] | 25 |
|
---|
[66] | 26 | required_files="${mai_config}"
|
---|
| 27 |
|
---|
[55] | 28 | run_rc_command "$1"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.