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:
445 bytes
|
Rev | Line | |
---|
[66] | 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"
|
---|
| 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.