blob: ad0104732bee54f7d155b042d3200533785d1d37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/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"
|