Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-27-2012, 03:59 PM   #1
LQ Newbie
Registered: Feb 2012
Posts: 9

Rep: Reputation: Disabled
how to start Pure-ftpd with -w switch

how to start Pure-ftpd with -w switch
Hello All

First off i am a Ununtu Noob (big time), i understand the concept of programming, i'm just simply no good at it. Long time Windows user so going back to a command line style takes a change of thinking. To help me get used to this i use Ubuntu 11.04 64-bit on a Acer Revo 3700, which acts as my media by running XBMC (eden beta 3). I also use transmission.

Now I've experimented with different Ubuntu ftp servers and settled on pure-ftpd (because i could use pure-admin as a GUI for users)

My problem is that for speed of use i want to be able to do site-to-site (FXP) transfers from the Ubuntu box to my NAS drive.

Now using google i understand i need to stop the pure-ftpd daemon and restart it with the -w switch (i tried to write my own script but got lost).

I have tried the commands

sudo service pure-ftpd stop
sudo pure-ftpd -w

and it works, but want i cant do is make pure-ftpd do this (pure-ftpd -w) as standard on boot.

Please help what do i need to do?



(by the way ubuntu has helped me make a kick-*** HTPC so i'm in love )
Old 02-27-2012, 04:20 PM   #2
Registered: Dec 2003
Distribution: Slackware, Alpine Linux, Ubuntu, Debian
Posts: 219

Rep: Reputation: 35

Open /etc/init.d/rc.local and add the line pure-ftpd -w that should bring up the daemon at startup.
1 members found this post helpful.
Old 02-27-2012, 05:08 PM   #3
LQ Newbie
Registered: Feb 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
Question how to start pure-ftpd with -w switch

Hi zWaR

thanks for your rapid response

i opened up a terminal, typed

gksudo nautilus

navigated to the file you quoted and opened it up, now I don't know where to put the command in the code below:

#! /bin/sh
# Provides: rc.local
# Required-Start: $remote_fs $syslog $all
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Run /etc/rc.local if it exist


. /lib/init/
. /lib/lsb/init-functions

do_start() {
if [ -x /etc/rc.local ]; then
[ "$VERBOSE" != no ] && log_begin_msg "Running local boot scripts (/etc/rc.local)"
[ "$VERBOSE" != no ] && log_end_msg $ES
return $ES

case "$1" in
echo "Error: argument '$1' not supported" >&2
exit 3
echo "Usage: $0 start|stop" >&2
exit 3


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
pure-ftpd-mysql activates pure-ftpd zvikamer Linux - Software 2 03-01-2008 01:11 PM
pure-ftpd does not start correctly when booting wouterzzzzz Linux - Software 0 12-31-2006 10:10 AM
pure-ftpd init script fails to start server in standalone mode Cronjob Debian 1 05-23-2006 01:11 AM
Pure-ftpd switch needed utw-mephisto Linux - General 0 12-21-2005 08:10 AM
Cannot start pure-ftpd kiaraho Linux - Software 2 02-20-2004 12:03 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:26 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration