mirror of
https://git.freebsd.org/ports.git
synced 2025-06-08 14:20:33 -04:00
literal name_enable wherever possible, and ${name}_enable when it's not, to prepare for the demise of set_rcvar(). In cases where I had to hand-edit unusual instances also modify formatting slightly to be more uniform (and in some cases, correct). This includes adding some $FreeBSD$ tags, and most importantly moving rcvar= to right after name= so it's clear that one is derived from the other.
27 lines
514 B
Bash
27 lines
514 B
Bash
#!/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=%%PORTNAME%%_enable
|
|
|
|
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"
|