aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/doinkd
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2000-08-11 09:34:09 +0800
committerwill <will@FreeBSD.org>2000-08-11 09:34:09 +0800
commitb48f263db4c9026a8c5ccb97c02a5b2796fe070f (patch)
tree20c396a55bf9406155b7e9d3c8af3209541bf430 /sysutils/doinkd
parent6381a37242926bae7b99505530ed355431537fd5 (diff)
downloadfreebsd-ports-gnome-b48f263db4c9026a8c5ccb97c02a5b2796fe070f.tar.gz
freebsd-ports-gnome-b48f263db4c9026a8c5ccb97c02a5b2796fe070f.tar.zst
freebsd-ports-gnome-b48f263db4c9026a8c5ccb97c02a5b2796fe070f.zip
Add startup script.
PR: 20458 Submitted by: James Howard <howardjp@wam.umd.edu>
Diffstat (limited to 'sysutils/doinkd')
-rw-r--r--sysutils/doinkd/Makefile4
-rw-r--r--sysutils/doinkd/files/idled.sh23
2 files changed, 27 insertions, 0 deletions
diff --git a/sysutils/doinkd/Makefile b/sysutils/doinkd/Makefile
index 3fac05c720c2..2040354d5007 100644
--- a/sysutils/doinkd/Makefile
+++ b/sysutils/doinkd/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 <bsd.port.mk>
diff --git a/sysutils/doinkd/files/idled.sh b/sysutils/doinkd/files/idled.sh
new file mode 100644
index 000000000000..880e47162941
--- /dev/null
+++ b/sysutils/doinkd/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