aboutsummaryrefslogtreecommitdiff
path: root/mail/pysieved/files/pysieved.in
blob: 624f8e64b05d7f2672043d236fe3d243b1f3a620 (plain) (blame)
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: %%PORTNAME%%
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
#
# Define these %%PORTNAME%%_* variables in one of these files:
#       /etc/rc.conf
#       /etc/rc.conf.local
#

. /etc/rc.subr

name="%%PORTNAME%%"
rcvar=`set_rcvar`

load_rc_config $name

: ${%%PORTNAME%%_enable="NO"}
: ${%%PORTNAME%%_pidfile="/var/run/%%PORTNAME%%.pid"}

pidfile="${%%PORTNAME%%_pidfile}"
command_interpreter="%%PYTHON_CMD%%"
command="%%PREFIX%%/lib/pysieved/pysieved.py"

run_rc_command "$1"