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