1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/mail/py-fuglu/files/fuglu.in
2016-07-31 07:15:14 +00:00

30 lines
493 B
Bash

#!/bin/sh
# $FreeBSD$
#
# 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"