#!/bin/sh # $TheSupernovaDuo$ # # PROVIDE: mai # REQUIRE: NETWORKING DAEMON # BEFORE: LOGIN # KEYWORD: shutdown $_rc_subr_loaded . /etc/rc.subr name="mai" rcvar=$name command="/usr/pkg/bin/mai" command_args="-f /usr/pkg/etc/mai/mai.ini -u www -g www" pidfile="/var/run/${name}.pid" start_cmd="mai_start" required_files="/usr/pkg/etc/mai/mai.ini" mai_start() { $command $command_args pgrep -n $name > $pidfile } load_rc_config $name run_rc_command "$1"