diff options
author | 2001-08-16 18:47:11 +0000 | |
---|---|---|
committer | 2001-08-16 18:47:11 +0000 | |
commit | 10a5c4bcf8b57aa2f2ed5d301df7984918a7f532 (patch) | |
tree | 2c1f7e893d43ee468d50e2f80015138b68d839db /app-text/dictd/files | |
parent | python extensions (diff) | |
download | historical-10a5c4bcf8b57aa2f2ed5d301df7984918a7f532.tar.gz historical-10a5c4bcf8b57aa2f2ed5d301df7984918a7f532.tar.bz2 historical-10a5c4bcf8b57aa2f2ed5d301df7984918a7f532.zip |
dictd (if you deside to use it) no longer uses supervise.
Also cleaned out a few old versions. (one of which had a nasty bug anyways.)
Diffstat (limited to 'app-text/dictd/files')
-rwxr-xr-x | app-text/dictd/files/1.5.5-r1/dictd-run | 3 | ||||
-rw-r--r-- | app-text/dictd/files/1.5.5-r3/dict.conf (renamed from app-text/dictd/files/1.5.5-r1/dict.conf) | 0 | ||||
-rw-r--r-- | app-text/dictd/files/1.5.5-r3/dictd.conf (renamed from app-text/dictd/files/1.5.5-r1/dictd.conf) | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | app-text/dictd/files/1.5.5-r3/rc.dictd (renamed from app-text/dictd/files/1.5.5-r1/svc-dictd) | 18 | ||||
-rw-r--r-- | app-text/dictd/files/1.5.5-r3/site.info (renamed from app-text/dictd/files/1.5.5-r1/site.info) | 0 | ||||
-rw-r--r-- | app-text/dictd/files/1.5.5/dict.conf | 6 | ||||
-rwxr-xr-x | app-text/dictd/files/1.5.5/dictd-run | 3 | ||||
-rw-r--r-- | app-text/dictd/files/1.5.5/dictd.conf | 14 | ||||
-rw-r--r-- | app-text/dictd/files/1.5.5/site.info | 6 | ||||
-rwxr-xr-x | app-text/dictd/files/1.5.5/svc-dictd | 41 | ||||
-rw-r--r-- | app-text/dictd/files/digest-dictd-1.5.5-r1 | 1 | ||||
-rw-r--r-- | app-text/dictd/files/digest-dictd-1.5.5-r3 (renamed from app-text/dictd/files/digest-dictd-1.5.5) | 0 |
12 files changed, 8 insertions, 84 deletions
diff --git a/app-text/dictd/files/1.5.5-r1/dictd-run b/app-text/dictd/files/1.5.5-r1/dictd-run deleted file mode 100755 index 949d9712994c..000000000000 --- a/app-text/dictd/files/1.5.5-r1/dictd-run +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -# We abuse some debugging features here to get the desired behavior -exec dictd -d nodetach < /dev/null > /dev/null 2>&1 diff --git a/app-text/dictd/files/1.5.5-r1/dict.conf b/app-text/dictd/files/1.5.5-r3/dict.conf index e06c3d296ec3..e06c3d296ec3 100644 --- a/app-text/dictd/files/1.5.5-r1/dict.conf +++ b/app-text/dictd/files/1.5.5-r3/dict.conf diff --git a/app-text/dictd/files/1.5.5-r1/dictd.conf b/app-text/dictd/files/1.5.5-r3/dictd.conf index 4cded974f973..4cded974f973 100644 --- a/app-text/dictd/files/1.5.5-r1/dictd.conf +++ b/app-text/dictd/files/1.5.5-r3/dictd.conf diff --git a/app-text/dictd/files/1.5.5-r1/svc-dictd b/app-text/dictd/files/1.5.5-r3/rc.dictd index 731e738de49f..cd932537045b 100755..100644 --- a/app-text/dictd/files/1.5.5-r1/svc-dictd +++ b/app-text/dictd/files/1.5.5-r3/rc.dictd @@ -6,6 +6,8 @@ SERVICE=dictd opts="start stop" +EXEC=/usr/sbin/dictd +EARGS="-s " DICTDCONF=/etc/dict/dictd.conf TMPCONF=/etc/dict/dictd.conf.$$ @@ -49,7 +51,7 @@ prepconfig() { fi #ok, go an index, and a dixtionary, append. - echo "database $DNAME { \"${DLIBDIR}/${DICT}\"" >> $TMPCONF + echo "database $DNAME { data \"${DLIBDIR}/${DICT}\"" >> $TMPCONF echo " index \"${DLIBDIR}/$i\" }" >> $TMPCONF CNT=`expr $CNT + 1` @@ -60,20 +62,16 @@ prepconfig() { } start() { - ebegin "Starting supervised ${SERVICE}" + ebegin "Starting ${SERVICE}" prepconfig - ln -sf ../services/${SERVICE} ${SVCDIR}/control/${SERVICE} + start-stop-daemon --start --quiet --exec $EXEC -- $EARGS eend $? } stop() { - ebegin "Stopping supervised ${SERVICE}" - if [ -e ${SVCDIR}/control/${SERVICE} ] - then - /usr/bin/svc -dx ${SVCDIR}/control/${SERVICE} - rm ${SVCDIR}/control/${SERVICE} - fi - eend $? + ebegin "Stopping ${SERVICE}" + start-stop-daemon --stop --quiet --name ${SERVICE} --exec $EXEC + eend $? } doservice ${@} diff --git a/app-text/dictd/files/1.5.5-r1/site.info b/app-text/dictd/files/1.5.5-r3/site.info index 23bfdeb61102..23bfdeb61102 100644 --- a/app-text/dictd/files/1.5.5-r1/site.info +++ b/app-text/dictd/files/1.5.5-r3/site.info diff --git a/app-text/dictd/files/1.5.5/dict.conf b/app-text/dictd/files/1.5.5/dict.conf deleted file mode 100644 index e06c3d296ec3..000000000000 --- a/app-text/dictd/files/1.5.5/dict.conf +++ /dev/null @@ -1,6 +0,0 @@ -# This is the configuration file for dict. -# Usually all you will ever need here is the server keywords. -# Refer to the dict manpage for other options. -# It will only check the second server if the first fails -server localhost -server dict.org diff --git a/app-text/dictd/files/1.5.5/dictd-run b/app-text/dictd/files/1.5.5/dictd-run deleted file mode 100755 index 949d9712994c..000000000000 --- a/app-text/dictd/files/1.5.5/dictd-run +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -# We abuse some debugging features here to get the desired behavior -exec dictd -d nodetach < /dev/null > /dev/null 2>&1 diff --git a/app-text/dictd/files/1.5.5/dictd.conf b/app-text/dictd/files/1.5.5/dictd.conf deleted file mode 100644 index 50a05c311f3d..000000000000 --- a/app-text/dictd/files/1.5.5/dictd.conf +++ /dev/null @@ -1,14 +0,0 @@ -# Informational message -site site.info - -# who's allowed. You might want to change this. -access { - allow * -} - -# Dictionaries are listed below. There are non here by default since you -# need to install those seperately. The ebuilds for each dictionary will -# append themselves to this file. If you add dictionaries by hand, make -# sure that the following line IS NOT the last line in the file. - -#LASTLINE diff --git a/app-text/dictd/files/1.5.5/site.info b/app-text/dictd/files/1.5.5/site.info deleted file mode 100644 index 23bfdeb61102..000000000000 --- a/app-text/dictd/files/1.5.5/site.info +++ /dev/null @@ -1,6 +0,0 @@ -Welcome to your dictionary server dictd! - -This is an example site information file. It should contain information -about any restricted databases and how users can obtain access. If may -also contain other random data as you see fit. - diff --git a/app-text/dictd/files/1.5.5/svc-dictd b/app-text/dictd/files/1.5.5/svc-dictd deleted file mode 100755 index 9fd50862e381..000000000000 --- a/app-text/dictd/files/1.5.5/svc-dictd +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh -#RCUPDATE:3 4:75:This line is required for script management - -. /etc/rc.d/config/functions - -SERVICE=dictd -opts="start stop" - -prepconfig() { - if [ ! -e /etc/dict/dictd.conf ] - then - eerror "dictd not started. Config file not found." - exit 1 - fi - # if no dictionaries, skip startup. - HASDICTS=`tail -1 /etc/dict/dictd.conf | grep LASTLINE` - if [ -n "$HASDICTS" ]; then - eerror "No dictionaries installed. No sense in running." - exit 1 - fi -} - -start() { - ebegin "Starting supervised ${SERVICE}" - prepconfig - ln -sf ../services/${SERVICE} ${SVCDIR}/control/${SERVICE} - eend $? -} - -stop() { - ebegin "Stopping supervised ${SERVICE}" - if [ -e ${SVCDIR}/control/${SERVICE} ] - then - /usr/bin/svc -dx ${SVCDIR}/control/${SERVICE} - rm ${SVCDIR}/control/${SERVICE} - fi - eend $? -} - -doservice ${@} - diff --git a/app-text/dictd/files/digest-dictd-1.5.5-r1 b/app-text/dictd/files/digest-dictd-1.5.5-r1 deleted file mode 100644 index 875329fc7519..000000000000 --- a/app-text/dictd/files/digest-dictd-1.5.5-r1 +++ /dev/null @@ -1 +0,0 @@ -MD5 67307b6e5d0337f354b275c377506c63 dictd-1.5.5.tar.gz diff --git a/app-text/dictd/files/digest-dictd-1.5.5 b/app-text/dictd/files/digest-dictd-1.5.5-r3 index 875329fc7519..875329fc7519 100644 --- a/app-text/dictd/files/digest-dictd-1.5.5 +++ b/app-text/dictd/files/digest-dictd-1.5.5-r3 |