diff options
author | Munechika SUMIKAWA <sumikawa@FreeBSD.org> | 2002-11-03 15:51:39 +0000 |
---|---|---|
committer | Munechika SUMIKAWA <sumikawa@FreeBSD.org> | 2002-11-03 15:51:39 +0000 |
commit | 27c90ba30b080ccff55ede715403c1632a5093c4 (patch) | |
tree | c37370d787b1714711e1539a1df9be41e2dad084 /dns/totd/files | |
parent | Add startup script. (diff) |
Add startup script.
Diffstat (limited to 'dns/totd/files')
-rw-r--r-- | dns/totd/files/totd.sh | 18 |
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 |