From b48f263db4c9026a8c5ccb97c02a5b2796fe070f Mon Sep 17 00:00:00 2001 From: will Date: Fri, 11 Aug 2000 01:34:09 +0000 Subject: Add startup script. PR: 20458 Submitted by: James Howard --- sysutils/idled/Makefile | 4 ++++ sysutils/idled/files/idled.sh | 23 +++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 sysutils/idled/files/idled.sh (limited to 'sysutils/idled') diff --git a/sysutils/idled/Makefile b/sysutils/idled/Makefile index 3fac05c..2040354 100644 --- a/sysutils/idled/Makefile +++ b/sysutils/idled/Makefile @@ -23,5 +23,9 @@ post-extract: post-install: strip ${PREFIX}/libexec/idled +.if !exists(${PREFIX}/etc/rc.d/idled.sh) + @${ECHO} "Installing ${PREFIX}/etc/rc.d/idled.sh startup script." + ${INSTALL_SCRIPT} -m 751 ${FILESDIR}/idled.sh ${PREFIX}/etc/rc.d/idled.sh +.endif .include diff --git a/sysutils/idled/files/idled.sh b/sysutils/idled/files/idled.sh new file mode 100644 index 0000000..880e471 --- /dev/null +++ b/sysutils/idled/files/idled.sh @@ -0,0 +1,23 @@ +#!/bin/sh +case "$1" in + start) + /usr/local/libexec/idled + echo -n ' idled' + ;; + stop) + killall -TERM idled + echo "idled stopped" + ;; + restart) + killall -TERM idled + /usr/local/libexec/idled + echo "idled restarted" + ;; + -h) + echo "Usage: `basename $0` { start | stop | restart }" + ;; + *) + /usr/local/libexec/idled + echo -n ' idled' + ;; +esac -- cgit v1.1