Rev | Line | |
---|
[66] | 1 | #!/bin/sh
|
---|
[71] | 2 | # $YakumoLabs$
|
---|
[66] | 3 | #
|
---|
| 4 | # PROVIDE: mai
|
---|
| 5 | # REQUIRE: NETWORKING DAEMON
|
---|
| 6 |
|
---|
| 7 | $_rc_subr_loaded . /etc/rc.subr
|
---|
| 8 |
|
---|
| 9 | name="mai"
|
---|
| 10 | rcvar=$name
|
---|
[71] | 11 | command="/usr/local/bin/mai"
|
---|
| 12 | command_args="-f /usr/local/etc/mai/mai.ini"
|
---|
[66] | 13 | pidfile="/var/run/${name}.pid"
|
---|
| 14 | start_cmd="mai_start"
|
---|
| 15 |
|
---|
[71] | 16 | required_files="/usr/local/etc/mai/mai.ini"
|
---|
[66] | 17 |
|
---|
| 18 | mai_start() {
|
---|
| 19 | $command $command_args
|
---|
| 20 | pgrep -n $name > $pidfile
|
---|
| 21 | }
|
---|
| 22 |
|
---|
| 23 | load_rc_config $name
|
---|
| 24 | run_rc_command "$1"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.