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
|
Rev | Line | |
---|
[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 |
|
---|
| 11 | name="suika"
|
---|
| 12 | rcvar="$name_enable"
|
---|
| 13 |
|
---|
| 14 | command="/usr/local/bin/$name"
|
---|
| 15 |
|
---|
| 16 | : ${suika_enable="NO"}
|
---|
| 17 | : ${suika_config_file="/usr/local/etc/suika/config"}
|
---|
| 18 |
|
---|
| 19 | command_args="-config ${suika_config_file}"
|
---|
| 20 | required_files="${suika_config_file}"
|
---|
| 21 |
|
---|
| 22 | load_rc_config "$name"
|
---|
| 23 | run_rc_command "$1"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.