Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36051 - atftp needs startup files
Summary: atftp needs startup files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Chuck Short (RETIRED)
URL:
Whiteboard:
Keywords:
: 37458 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-12-18 03:52 UTC by Kai Schmidt
Modified: 2004-03-03 16:04 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Schmidt 2003-12-18 03:52:23 UTC
Versions 0.6 and 0.6.2 of atftp (Trivial FTP Server) could need some assisting files to start the server. Both ways (via xinetd, or stand alone with /etc/init.d/atftp start) need simple supporting files, which should be included in the ebuild.

1. /etc/init.d/atftp
2. /etc/xinetd.d/atftp

Those files are trivial. I can send them if necessary.

Best regards

Kai

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Chuck Short (RETIRED) gentoo-dev 2003-12-18 05:15:08 UTC
Please include these files as an attachment.

Thanks
Comment 2 Aurelien Requiem 2003-12-22 01:42:45 UTC
Hello.

I'm agree with Kai Schmidt.
Here is a sample startup file for init.d directory

File: /etc/init.d/atftp
#!/sbin/runscript

depend() {
        use logger
        need net
}

checkconfig() {
        if [ ! -d "${TFTPD_ROOT}" ]
        then
                error "You need a tftp root direcory"
                return 1
        fi
}

start() {
        checkconfig || return 1
        ebegin "Starting tftpd"
        start-stop-daemon --start --quiet --exec /usr/sbin/in.tftpd \
                -- ${TFTPD_OPTS} ${TFTPD_ROOT}
        eend $?
}

stop() {
        ebegin "Stopping tftpd"
        start-stop-daemon --stop --quiet --exec /usr/sbin/in.tftpd
        eend $?
}

File : /etc/conf.d/atftp
# Config file for tftp server

TFTPD_ROOT="/tftproot"
TFTPD_OPTS="--daemon --user nobody --group nobody"

I've not produced an xinetd service file, because i don't use it.

Best regards
Comment 3 Chuck Short (RETIRED) gentoo-dev 2003-12-30 14:23:42 UTC
Added to cvs thanks for the additions
Comment 4 Rajiv Aaron Manglani (RETIRED) gentoo-dev 2004-03-03 16:04:34 UTC
*** Bug 37458 has been marked as a duplicate of this bug. ***