ports/mail/py-fuglu/files/fuglu.in
2021-04-06 16:31:13 +02:00

27 lines
479 B
Bash

#!/bin/sh
# PROVIDE: fuglu
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# fuglu_enable (bool): Set to NO by default.
# Set it to YES to enable fuglu.
. /etc/rc.subr
name=fuglu
rcvar=fuglu_enable
load_rc_config $name
: ${fuglu_enable:=no}
: ${fuglu_pidfile="/var/run/${name}.pid"}
command=%%PREFIX%%/bin/${name}
pidfile=${fuglu_pidfile}
command_interpreter=%%PYTHON_CMD%%
run_rc_command "$1"