diff options
Diffstat (limited to 'japanese/ebnetd/files/ndtpd.sh.sample')
-rw-r--r-- | japanese/ebnetd/files/ndtpd.sh.sample | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/japanese/ebnetd/files/ndtpd.sh.sample b/japanese/ebnetd/files/ndtpd.sh.sample deleted file mode 100644 index 0db8c8db6c9a..000000000000 --- a/japanese/ebnetd/files/ndtpd.sh.sample +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/sh -e - -# -# $FreeBSD$ -# -# startup script for ndtpd -# Usage: ndtpd.sh {start|stop} - -command=$1 -standalone=YES # Run ndtpd as a standalone daemon. -#standalone=NO # Run ndtpd as a child of inetd. - -GetDirective() { - local directive - - directive=$1 - - awk '/^[ ]*'${directive}'[ ]+/ {print $2; exit}' ${conf} -} - -MakeWorkingDirectory() { - local user group work - - user="`GetDirective user`" - group="`GetDirective group`" - work="`GetDirective work-path`" - - rm -rf ${work:=@rundir@/ndtpd} - eval install -d ${user:+-o ${user}} ${group:+-g ${group}} ${work} -} - -conf=@prefix@/etc/ndtpd.conf - -ndtpcheck -c ${conf} || exit - -case "${command}" in -start) - MakeWorkingDirectory - - if [ "${standalone}" = YES ]; then - ndtpd && echo -n " ndtpd" - fi - ;; -stop) - if [ "${standalone}" = YES ]; then - ndtpcontrol terminate && echo -n " ndtpd" - fi - ;; -*) - echo "usage: `basename $0` {start|stop}" >&2 - exit 22 - ;; -esac - -exit |