source: code/trunk/rc.d/FreeBSD@ 71

Last change on this file since 71 was 71, checked in by yakumo.izuru, 7 weeks ago

今では重荷がなくなったので...

File size: 554 bytes
RevLine 
[55]1#!/bin/sh
[71]2# $YakumoLabs$
[55]3#
[56]4# PROVIDE: mai
[55]5# REQUIRE: DAEMON NETWORKING syslog
6# KEYWORD: shutdown
7
8
9. /etc/rc.subr
10
[56]11name="mai"
12rcvar="mai_enable"
[55]13
14load_rc_config $name
15
[56]16: ${mai_enable:="NO"}
17: ${mai_config="/usr/local/etc/mai/mai.ini"}
[66]18: ${mai_chdir="/usr/local/share/mai"}
[55]19
20pidfile="/var/run/${name}.pid"
21command="/usr/sbin/daemon"
22procname="/usr/local/bin/${name}"
[67]23mai_args="-f ${mai_config} -u www -g www"
[56]24command_args="-S -m 3 -s info -l daemon -p ${pidfile} /usr/bin/env ${procname} ${mai_args}"
[55]25
[66]26required_files="${mai_config}"
27
[55]28run_rc_command "$1"
Note: See TracBrowser for help on using the repository browser.