aboutsummaryrefslogtreecommitdiff
path: root/sysutils/doinkd/files
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2000-08-11 01:34:09 +0000
committerWill Andrews <will@FreeBSD.org>2000-08-11 01:34:09 +0000
commitdcb4cb482a69bf4fd594b3531b3c6e8974e74cf6 (patch)
tree81fa9fa71e25920aa151e61d2f6c057daa50b1be /sysutils/doinkd/files
parentd5ed1c173aa6ea3c7b6300e9bcee3f93ac5736e2 (diff)
downloadports-dcb4cb482a69bf4fd594b3531b3c6e8974e74cf6.tar.gz
ports-dcb4cb482a69bf4fd594b3531b3c6e8974e74cf6.zip
Add startup script.
PR: 20458 Submitted by: James Howard <howardjp@wam.umd.edu>
Notes
Notes: svn path=/head/; revision=31500
Diffstat (limited to 'sysutils/doinkd/files')
-rw-r--r--sysutils/doinkd/files/idled.sh23
1 files changed, 23 insertions, 0 deletions
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