aboutsummaryrefslogtreecommitdiffstats
path: root/dns/totd/files
diff options
context:
space:
mode:
authorsumikawa <sumikawa@FreeBSD.org>2002-11-03 23:51:39 +0800
committersumikawa <sumikawa@FreeBSD.org>2002-11-03 23:51:39 +0800
commitd5910d94acf2fe4399b32656a526e3d5b238ec7c (patch)
tree9301c94e8455dea39173852502db23ab9caf77c2 /dns/totd/files
parent7685ff860ede09a2d1ab77ae8e3f92735dfc3bbc (diff)
downloadfreebsd-ports-gnome-d5910d94acf2fe4399b32656a526e3d5b238ec7c.tar.gz
freebsd-ports-gnome-d5910d94acf2fe4399b32656a526e3d5b238ec7c.tar.zst
freebsd-ports-gnome-d5910d94acf2fe4399b32656a526e3d5b238ec7c.zip
Add startup script.
Diffstat (limited to 'dns/totd/files')
-rw-r--r--dns/totd/files/totd.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/dns/totd/files/totd.sh b/dns/totd/files/totd.sh
new file mode 100644
index 000000000000..9a528db44489
--- /dev/null
+++ b/dns/totd/files/totd.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+case "$1" in
+ start)
+ if [ -x %PREFIX%/sbin/totd ]; then
+ %PREFIX%/sbin/totd && echo -n ' totd'
+ fi
+ ;;
+
+ stop)
+ /usr/bin/killall totd && echo -n ' totd'
+ ;;
+
+ *)
+ echo "Usage: `basename $0` { start | stop }"
+ exit 64
+ ;;
+esac