#!/bin/sh # # $FreeBSD: head/www/trafficserver/files/trafficserver.in 407214 2016-01-25 14:14:03Z vanilla $ # # PROVIDE: trafficserver # REQUIRE: LOGIN # KEYWORD: shutdown . /etc/rc.subr rcvar=trafficserver_enable name="trafficserver" trafficserver_enable=${trafficserver_enable:-"NO"} pidfile="/var/run/trafficserver/traffic_cop.lock" command=/usr/sbin/daemon command_args="-p ${pidfile} %%PREFIX%%/bin/traffic_cop" procname="%%PREFIX%%/bin/traffic_cop" load_rc_config "$name" run_rc_command "$1"