Linux: Starting and stopping tftpd

Start tftp daemon

root@bt:~# atftpd –daemon –port 69 /var/tmp

Check if service is enabled or not

root@bt:~# netstat -anup |grep 69
udp        0      0    *                           1915/atftpd

-a : listen all, -n : do not resolve numeric into names, show numeric only, -u : udp, -p  : process id of the service.

Stop tftpd with kill command

root@bt:~# kill -9 1915
root@bt:~# netstat -anup |grep 69
-9: means kill that cannot be blocked. As you can see from netstat with filter, no open connection exists with source port 69 anymore.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s