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:
459 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 | # $TheSupernovaDuo$
|
---|
3 | #
|
---|
4 | # PROVIDE: mai
|
---|
5 | # REQUIRE: NETWORKING DAEMON
|
---|
6 | # BEFORE: LOGIN
|
---|
7 | # KEYWORD: shutdown
|
---|
8 |
|
---|
9 | $_rc_subr_loaded . /etc/rc.subr
|
---|
10 |
|
---|
11 | name="mai"
|
---|
12 | rcvar=$name
|
---|
13 | command="/usr/pkg/bin/mai"
|
---|
14 | command_args="-f /usr/pkg/etc/mai/mai.ini -u www -g www"
|
---|
15 | pidfile="/var/run/${name}.pid"
|
---|
16 | start_cmd="mai_start"
|
---|
17 |
|
---|
18 | required_files="/usr/pkg/etc/mai/mai.ini"
|
---|
19 |
|
---|
20 | mai_start() {
|
---|
21 | $command $command_args
|
---|
22 | pgrep -n $name > $pidfile
|
---|
23 | }
|
---|
24 |
|
---|
25 | load_rc_config $name
|
---|
26 | run_rc_command "$1"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.