Update manual, add rc.d stuff

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

git-svn-id: https://svn.yakumo.dev/yakumo.izuru/toyohime/trunk@114 922d331f-388e-da47-97a9-ad700dc0b8b9
This commit is contained in:
yakumo.izuru 2024-02-10 01:39:09 +00:00
parent ab44d3f5b3
commit c7cf160a20
5 changed files with 59 additions and 1 deletions

26
rc.d/freebsd.sh Normal file
View File

@ -0,0 +1,26 @@
#!/bin/sh
# $TheSupernovaDuo$
#
# PROVIDE: toyohime
# REQUIRE: DAEMON NETWORKING
# BEFORE: LOGIN
# KEYWORD: shutdown
. /etc/rc.subr
name="toyohime"
rcvar="${name}_enable"
: ${toyohime_enable="NO"}
: ${toyohime_fqdn="localhost"}
: ${toyohime_user="www"}
: ${toyohime_group="www"}
: ${toyohime_repos="/usr/local/etc/toyohime-repos"}
: ${toyohime_address="127.0.0.1:8080"}
command="/usr/sbin/daemon"
pidfile="/var/run/${name}.pid"
command_args="-p ${pidfile} -u ${toyohime_user} /usr/local/bin/${name} -listen ${toyohime_address} -index -watch ${toyohime_fqdn} ${toyohime_repos}"
load_rc_config "${name}"
run_rc_command "$1"

2
rc.d/immortal.yml Normal file
View File

@ -0,0 +1,2 @@
cmd: /usr/local/bin/toyohime -listen 127.0.0.1:8080 -index go.example.com /usr/local/etc/toyohime-repos
user: www

17
rc.d/netbsd.sh Normal file
View File

@ -0,0 +1,17 @@
#!/bin/sh
# $TheSupernovaDuo$
#
# PROVIDE: toyohime
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
$rc_subr_loaded . /etc/rc.subr
name="toyohime"
rcvar="$name"
command="/usr/local/bin/$name"
command_args="-listen 127.0.0.1:8080 -index go.example.com /usr/local/etc/toyohime-repos"
load_rc_config "$name"
run_rc_command "$1"

11
rc.d/openbsd.ksh Normal file
View File

@ -0,0 +1,11 @@
#!/bin/ksh
# $TheSupernovaDuo$
. /etc/rc.d/rc.subr
daemon="/usr/local/bin/toyohime"
daemon_flags="-listen 127.0.0.1:8080 -index localhost /etc/toyohime-repos"
daemon_user="www"
rc_bg=YES
rc_cmd "$1"

View File

@ -7,9 +7,11 @@
.Sh SYNOPSIS
.Nm
.Op Fl index
.Op Fl listen Ar :port
.Op Fl listen Ar ip:port
.Op Fl nohealthz
.Op Fl watch
.Op Ar fqdn
.Op Ar path/to/repos/file
.Sh DESCRIPTION
.Nm
is a library and command line implementation