Date: Mon, 7 Aug 2000 13:12:07 -0400 (EDT) From: howardjp@wam.umd.edu To: FreeBSD-gnats-submit@freebsd.org Subject: ports/20458: Add startup shell script to sysutils/idled Message-ID: <200008071712.e77HC7i45989@arbornet.org>
next in thread | raw e-mail | index | archive | help
>Number: 20458 >Category: ports >Synopsis: Add startup shell script to sysutils/idled >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: Mon Aug 07 10:20:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: James Howard >Release: FreeBSD 4.0-STABLE i386 >Organization: Arbornet, Inc. >Environment: N/A >Description: Apache, mysql, and other long running processes include shell scripts to start them at boot time in /usr/local/etc/rc.d. Idled was missing this. >How-To-Repeat: N/A >Fix: diff -Nru idled.old/Makefile idled/Makefile --- idled.old/Makefile Mon Aug 7 13:00:05 2000 +++ idled/Makefile Mon Aug 7 13:06:41 2000 @@ -23,5 +23,9 @@ post-install: strip ${PREFIX}/libexec/idled + @if [ ! -f ${PREFIX}/etc/rc.d/idled.sh ]; then \ + ${ECHO} "Installing ${PREFIX}/etc/rc.d/idled.sh startup file."; \ + ${INSTALL_SCRIPT} -m 751 ${FILESDIR}/idled.sh ${PREFIX}/etc/rc.d/idled.sh; \ + fi .include <bsd.port.mk> diff -Nru idled.old/files/idled.sh idled/files/idled.sh --- idled.old/files/idled.sh Wed Dec 31 19:00:00 1969 +++ idled/files/idled.sh Mon Aug 7 13:00:44 2000 @@ -0,0 +1,27 @@ +#!/bin/sh +case "$1" in + start) + /usr/local/libexec/idled + echo -n ' idled' + ;; + stop) + if [ -f /var/run/sshd.pid ]; then + kill -TERM `cat /var/run/sshd.pid` + rm -f /var/run/sshd.pid + echo -n ' sshd' + fi + ;; + restart) + if [ -f /var/run/sshd.pid ]; then + kill -HUP `cat /var/run/sshd.pid` + echo 'sshd restarted' + fi + ;; + -h) + echo "Usage: `basename $0` { start | stop | restart }" + ;; + *) + /usr/local/libexec/idled + echo -n ' idled' + ;; +esac >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?200008071712.e77HC7i45989>