From owner-freebsd-questions@FreeBSD.ORG Fri May 12 17:34:05 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DA36416AF54 for ; Fri, 12 May 2006 17:34:05 +0000 (UTC) (envelope-from atom.powers@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C39A43DE6 for ; Fri, 12 May 2006 17:33:21 +0000 (GMT) (envelope-from atom.powers@gmail.com) Received: by nz-out-0102.google.com with SMTP id l1so493651nzf for ; Fri, 12 May 2006 10:33:20 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Otij4L1So8I121sa5IGM8uHYOJFmGmx9TCHl3DVYfuMggEMCdkGaBMq5n9OO1NDjn7C2ahnKO80MtI38ynjNKVeXbQSni3oahWwO6M9KPNuJlg5XSpvYYWTEyTUBB6XCG5h6OUHjBciNWyJT82XMhifL+XqmJHroz5gcR3EauR4= Received: by 10.64.88.11 with SMTP id l11mr2742209qbb; Fri, 12 May 2006 10:33:20 -0700 (PDT) Received: by 10.65.150.9 with HTTP; Fri, 12 May 2006 10:33:20 -0700 (PDT) Message-ID: Date: Fri, 12 May 2006 10:33:20 -0700 From: "Atom Powers" To: "freebsd-questions@freebsd.org" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: using rc scripts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 May 2006 17:34:08 -0000 I wrote an rc script for cfengine, but it's not recording the pid. Am I doing something obviously wrong, or does rc rely on the app to provide the pid? -- #!/bin/sh # # PROVIDE: cfexecd # REQUIRE: LOGIN # BEFORE: securelevel # KEYWORD: FreeBSD shutdown . "/etc/rc.subr" name=3D"cfexecd" rcvar=3D`set_rcvar` command=3D"/usr/local/sbin/cfexecd" command_args=3D"" pidfile=3D"/var/run/$name.pid" #required_files=3D"/usr/local/etc/$name.conf" # read configuration and set defaults load_rc_config "$name" : ${cfexecd_enable=3D"NO"} : ${cfexecd_flags=3D""} run_rc_command "$1" --=20 -- Perfection is just a word I use occasionally with mustard. --Atom Powers--