From owner-freebsd-questions@FreeBSD.ORG Tue May 13 17:22:07 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F23AF106566C for ; Tue, 13 May 2008 17:22:06 +0000 (UTC) (envelope-from jeff@m2.seamanpaper.com) Received: from buster.seamanpaper.com (buster.seamanpaper.com [67.158.116.43]) by mx1.freebsd.org (Postfix) with ESMTP id A2DDF8FC1A for ; Tue, 13 May 2008 17:22:06 +0000 (UTC) (envelope-from jeff@m2.seamanpaper.com) Received: (qmail 4942 invoked from network); 13 May 2008 13:22:05 -0400 Received: from unknown (HELO junco.intranet.seamanpaper.com) (192.168.10.133) by buster.seamanpaper.com with SMTP; 13 May 2008 13:22:05 -0400 Received: (qmail 72398 invoked by uid 0); 13 May 2008 17:26:13 -0000 Received: from unknown (HELO ?192.168.10.80?) (192.168.10.80) by 192.168.10.133 with SMTP; 13 May 2008 17:26:13 -0000 Message-ID: <4829CE3C.30409@m2.seamanpaper.com> Date: Tue, 13 May 2008 13:22:04 -0400 From: Jeff Dickens User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: freebsd-questions@freebsd.org, bacula-users Content-Type: multipart/mixed; boundary="------------020208040603050305040701" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: trickle and bacula-fd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jeff@seamanpaper.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 May 2008 17:22:07 -0000 This is a multi-part message in MIME format. --------------020208040603050305040701 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Pardon the cross-posting; don't know where would be the better place to ask. I've got bacula-fd running under trickle, and it seems to be doing exactly what I want it to. I manually started bacula-fd on my freebsd system like this: /usr/local/bin/trickle -s -u 24 /usr/local/sbin/bacula-fd -u root -g wheel -v -c /usr/local/etc/bacula-fd.conf The normal rc file for bacula-fd looks like this.. how should I modify it to make it run under trickle as above? #!/bin/sh # # $FreeBSD: ports/sysutils/bacula-server/files/bacula-fd.in,v 1.4 2007/03/01 12:19:01 miwi Exp $ # # PROVIDE: utility # REQUIRE: DAEMON # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf.local or /etc/rc.conf # to enable this service: # # bacula_fd_enable (bool): Set to NO by default. # Set it to YES to enable bacula_fd. # bacula_fd_flags (params): Set params used to start bacula_fd. # . /etc/rc.subr name="bacula_fd" rcvar=${name}_enable command=/usr/local/sbin/bacula-fd load_rc_config $name pidfile="${bacula_fd_pidfile}" : ${bacula_fd_enable="NO"} : ${bacula_fd_flags=" -u root -g wheel -v -c /usr/local/etc/bacula-fd.conf"} : ${bacula_fd_pidfile="/var/run/bacula-fd.9102.pid"} run_rc_command "$1" --------------020208040603050305040701--