mirror of
https://git.freebsd.org/ports.git
synced 2025-06-14 09:10:32 -04:00
- Add rc scripts [1] - Reset maintainer to ports@ PR: 193784 [1] Submitted by: swills@ [1]
38 lines
692 B
Bash
38 lines
692 B
Bash
#! /bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: postman
|
|
# REQUIRE: DAEMON
|
|
# KEYWORD: shutdown
|
|
|
|
#
|
|
# Add the following lines to /etc/rc.conf to enable postman:
|
|
#
|
|
#postman_enable="YES"
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="postman"
|
|
rcvar="postman_enable"
|
|
|
|
load_rc_config $name
|
|
|
|
: ${postman_user:=www}
|
|
: ${postman_group:=www}
|
|
: ${postman_enable:=NO}
|
|
|
|
pidfile="/var/run/${name}.pid"
|
|
command="/usr/sbin/daemon"
|
|
command_args="-c -f -p ${pidfile} %%PREFIX%%/bin/postman ${postman_args}"
|
|
command_interpreter="%%PYTHON_CMD%%"
|
|
procname="%%PREFIX%%/bin/postman"
|
|
|
|
start_precmd=postman_pre_start
|
|
|
|
postman_pre_start() {
|
|
/usr/bin/install -o ${postman_user} -g ${postman_group} -m 644 /dev/null ${pidfile}
|
|
}
|
|
|
|
run_rc_command "$1"
|