source: code/trunk/rc.d/freebsd.rc.d@ 821

Last change on this file since 821 was 820, checked in by yakumo.izuru, 2 years ago

Allow the configuration directory to be elsewhere, add
system startup scripts

Signed-off-by: Izuru Yakumo <yakumo.izuru@…>

  • Property svn:executable set to on
File size: 439 bytes
RevLine 
[820]1#!/bin/sh
2# $TheSupernovaDuo: suika,v 0.4.2 2023/6/9 23:30:3 yakumo_izuru Exp $
3
4# PROVIDE: suika
5# REQUIRE: DAEMON
6# BEFORE: LOGIN
7# KEYWORD: SHUTDOWN
8
9. /etc/rc.subr
10
11name="suika"
12rcvar="$name_enable"
13
14command="/usr/local/bin/$name"
15
16: ${suika_enable="NO"}
17: ${suika_config_file="/usr/local/etc/suika/config"}
18
19command_args="-config ${suika_config_file}"
20required_files="${suika_config_file}"
21
22load_rc_config "$name"
23run_rc_command "$1"
Note: See TracBrowser for help on using the repository browser.