add tls and influx startup scripts
This commit is contained in:
parent
824f5f3418
commit
9351d9f14d
|
@ -19,6 +19,8 @@ for f in albatross_log \
|
|||
albatross_stat \
|
||||
albatross_console \
|
||||
albatross_daemon \
|
||||
albatross_influx \
|
||||
albatross_tls \
|
||||
albatross_x
|
||||
do install -U $basedir/packaging/rc.d/$f $rootdir/usr/local/etc/rc.d/$f; done
|
||||
|
||||
|
|
39
packaging/rc.d/albatross_influx
Executable file
39
packaging/rc.d/albatross_influx
Executable file
|
@ -0,0 +1,39 @@
|
|||
#!/bin/sh
|
||||
|
||||
# $FreeBSD$
|
||||
#
|
||||
# PROVIDE: albatross_influx
|
||||
# REQUIRE: LOGIN albatross_stat
|
||||
# KEYWORD: shutdown nojail
|
||||
#
|
||||
# Define these albatross_influx_* variables in one of these files
|
||||
# /etc/rc.conf
|
||||
# /etc/rc.conf.local
|
||||
# /etc/rc.conf.d/albatross_influx
|
||||
# /usr/local/etc/rc.conf.d/albatross_influx
|
||||
#
|
||||
# albatross_influx_flags:
|
||||
# Default: ""
|
||||
#
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name=albatross_influx
|
||||
rcvar=${name}_enable
|
||||
desc="Albatross influx service"
|
||||
load_rc_config $name
|
||||
start_cmd="albatross_influx_start"
|
||||
|
||||
: ${albatross_influx_enable:="NO"}
|
||||
: ${albatross_influx_flags:=""}
|
||||
: ${albatross_influx_user:="albatross"}
|
||||
|
||||
pidfile="/var/run/albatross_influx.pid"
|
||||
procname="/usr/local/libexec/albatross/vmmd_influx"
|
||||
|
||||
albatross_influx_start () {
|
||||
/usr/sbin/daemon -S -p "${pidfile}" -u "${albatross_influx_user}" \
|
||||
"${procname}" "${albatross_influx_flags}"
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
39
packaging/rc.d/albatross_tls
Executable file
39
packaging/rc.d/albatross_tls
Executable file
|
@ -0,0 +1,39 @@
|
|||
#!/bin/sh
|
||||
|
||||
# $FreeBSD$
|
||||
#
|
||||
# PROVIDE: albatross_tls
|
||||
# REQUIRE: LOGIN albatross_daemon
|
||||
# KEYWORD: shutdown nojail
|
||||
#
|
||||
# Define these albatross_tls_* variables in one of these files
|
||||
# /etc/rc.conf
|
||||
# /etc/rc.conf.local
|
||||
# /etc/rc.conf.d/albatross_tls
|
||||
# /usr/local/etc/rc.conf.d/albatross_tls
|
||||
#
|
||||
# albatross_tls_flags:
|
||||
# Default: ""
|
||||
#
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name=albatross_tls
|
||||
rcvar=${name}_enable
|
||||
desc="Albatross tls service"
|
||||
load_rc_config $name
|
||||
start_cmd="albatross_tls_start"
|
||||
|
||||
: ${albatross_tls_enable:="NO"}
|
||||
: ${albatross_tls_flags:=""}
|
||||
: ${albatross_tls_user:="albatross"}
|
||||
|
||||
pidfile="/var/run/albatross_tls.pid"
|
||||
procname="/usr/local/libexec/albatross/vmmd_tls"
|
||||
|
||||
albatross_tls_start () {
|
||||
/usr/sbin/daemon -S -p "${pidfile}" -u "${albatross_tls_user}" \
|
||||
"${procname}" "${albatross_tls_flags}"
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
Loading…
Reference in a new issue