From owner-freebsd-ports Sun Sep 24 8:30:11 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 6BCDF37B43C for ; Sun, 24 Sep 2000 08:30:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id IAA71999; Sun, 24 Sep 2000 08:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from mumble.foobie.net (adsl-216-103-105-178.dsl.snfc21.pacbell.net [216.103.105.178]) by hub.freebsd.org (Postfix) with ESMTP id 6616A37B422 for ; Sun, 24 Sep 2000 08:22:48 -0700 (PDT) Received: (from sbeitzel@localhost) by mumble.foobie.net (8.11.0/8.11.0) id e8OFMmv05151; Sun, 24 Sep 2000 08:22:48 -0700 (PDT) (envelope-from sbeitzel) Message-Id: <200009241522.e8OFMmv05151@mumble.foobie.net> Date: Sun, 24 Sep 2000 08:22:48 -0700 (PDT) From: Stephen Beitzel Reply-To: sbeitzel@mumble.foobie.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/21517: start|stop script for upsd (/usr/local/etc/rc.d/upsd.sh) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 21517 >Category: ports >Synopsis: start|stop script for upsd (/usr/local/etc/rc.d/upsd.sh) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Sep 24 08:30:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Stephen Beitzel >Release: FreeBSD 4.1-STABLE i386 >Organization: foobie.net >Environment: -STABLE as of 9/15/2000 >Description: upsd (/usr/ports/sysutils/upsd) does not have a startup/shutdown script for placement into /usr/local/etc/rc.d. So, after doing a 'make install' for this port there's nothing that will make sure that upsd is running after a reboot. >How-To-Repeat: >Fix: I wrote a simple script to manage upsd. This goes into the /usr/local/etc/rc.d directory. ----- #!/bin/sh case "$1" in start) echo -n ' upsd' /usr/local/sbin/upsd ;; stop) [ -f /var/run/upsd.pid ] && kill -TERM `cat /var/run/upsd.pid` && echo -n ' upsd' ;; *) echo "Usage: `basename $0` {start|stop}" >&2 ;; esac exit 0 >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message