source: code/trunk/rc.d/NetBSD@ 70

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
11name="mai"
12rcvar=$name
13command="/usr/pkg/bin/mai"
14command_args="-f /usr/pkg/etc/mai/mai.ini -u www -g www"
15pidfile="/var/run/${name}.pid"
16start_cmd="mai_start"
17
18required_files="/usr/pkg/etc/mai/mai.ini"
19
20mai_start() {
21 $command $command_args
22 pgrep -n $name > $pidfile
23}
24
25load_rc_config $name
26run_rc_command "$1"
Note: See TracBrowser for help on using the repository browser.