From a0848d727648aa70f6a89c013203f2b82a4e972e Mon Sep 17 00:00:00 2001 From: cvs2svn Date: Fri, 12 Dec 2003 19:19:02 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'RELEASE_5_2_0'. --- japanese/ebnetd/files/ndtpd.sh.sample | 57 ----------------------------------- 1 file changed, 57 deletions(-) delete mode 100644 japanese/ebnetd/files/ndtpd.sh.sample (limited to 'japanese/ebnetd/files/ndtpd.sh.sample') diff --git a/japanese/ebnetd/files/ndtpd.sh.sample b/japanese/ebnetd/files/ndtpd.sh.sample deleted file mode 100644 index 3abaa419a306..000000000000 --- a/japanese/ebnetd/files/ndtpd.sh.sample +++ /dev/null @@ -1,57 +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 -ndtpd=@prefix@/sbin/ndtpd -ndtpcheck=@prefix@/sbin/ndtpcheck -ndtpcontrol=@prefix@/sbin/ndtpcontrol - -${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 -- cgit v1.2.3