We have not checked for this KEYWORD for a long time now, so this is a complete noop, and thus no PORTREVISION bump. Removing it at this point is mostly for pedantic reasons, and partly to avoid perpetuating this anachronism by copy and paste to future scripts.
44 lines
940 B
Bash
44 lines
940 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: canna
|
|
# REQUIRE: DAEMON
|
|
# BEFORE: LOGIN
|
|
# KEYWORD: shutdown
|
|
|
|
# Define these canna_* variables in one of these files:
|
|
# /etc/rc.conf
|
|
# /etc/rc.conf.local
|
|
# /etc/rc.conf.d/canna
|
|
#
|
|
# DO NOT CHANGE THESE DEFAULT VALUES HERE
|
|
#
|
|
canna_enable=${canna_enable:-"NO"} # Enable canna
|
|
#canna_program="@PREFIX@/sbin/cannaserver" # Location of canna
|
|
canna_flags=${canna_flags:-"-u bin"} # Flags to canna program
|
|
# Put the following into /etc/rc.conf if you want to use a TCP
|
|
# connection instead of a UNIX domain socket.
|
|
#canna_flags="-u bin -inet"
|
|
|
|
. @RC_SUBR@
|
|
|
|
name="canna"
|
|
rcvar=`set_rcvar`
|
|
command="@PREFIX@/sbin/cannaserver"
|
|
start_precmd="canna_prestart"
|
|
stop_cmd="canna_stop"
|
|
|
|
canna_prestart() {
|
|
@RM@ -f /tmp/.iroha_unix/IROHA
|
|
@TOUCH@ /var/log/CANNA0msgs
|
|
@CHOWN@ bin:bin /var/log/CANNA0msgs
|
|
}
|
|
|
|
canna_stop() {
|
|
@PREFIX@/sbin/cannakill && echo "Stopping ${name}."
|
|
}
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|