Update manual, add rc.d stuff
Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja> git-svn-id: file:///srv/svn/repo/toyohime/trunk@114 922d331f-388e-da47-97a9-ad700dc0b8b9
This commit is contained in:
parent
58ded33a69
commit
5bcf36ba3a
26
rc.d/freebsd.sh
Normal file
26
rc.d/freebsd.sh
Normal 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
2
rc.d/immortal.yml
Normal 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
17
rc.d/netbsd.sh
Normal 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
11
rc.d/openbsd.ksh
Normal 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"
|
@ -7,9 +7,11 @@
|
|||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.Nm
|
.Nm
|
||||||
.Op Fl index
|
.Op Fl index
|
||||||
.Op Fl listen Ar :port
|
.Op Fl listen Ar ip:port
|
||||||
.Op Fl nohealthz
|
.Op Fl nohealthz
|
||||||
.Op Fl watch
|
.Op Fl watch
|
||||||
|
.Op Ar fqdn
|
||||||
|
.Op Ar path/to/repos/file
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
.Nm
|
.Nm
|
||||||
is a library and command line implementation
|
is a library and command line implementation
|
||||||
|
Loading…
x
Reference in New Issue
Block a user