source:
code/trunk/rc.d/NetBSD@
67
Last change on this file since 67 was 67, checked in by , 16 months ago | |
---|---|
File size: 459 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" | |
[67] | 14 | command_args="-f /usr/pkg/etc/mai/mai.ini -u www -g www" |
[66] | 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.