Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Sep 2000 08:22:48 -0700 (PDT)
From:      Stephen Beitzel <sbeitzel@mumble.foobie.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/21517: start|stop script for upsd (/usr/local/etc/rc.d/upsd.sh)
Message-ID:  <200009241522.e8OFMmv05151@mumble.foobie.net>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009241522.e8OFMmv05151>