LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-27-2012, 02:59 PM   #1
jlivin25
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?

Thanks

James

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

Rep: Reputation: 35
Hi!

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, 04:08 PM   #3
jlivin25
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
### BEGIN INIT INFO
# 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
### END INIT INFO


PATH=/sbin:/usr/sbin:/bin:/usr/bin

. /lib/init/vars.sh
. /lib/lsb/init-functions

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

case "$1" in
start)
do_start
;;
restart|reload|force-reload)
echo "Error: argument '$1' not supported" >&2
exit 3
;;
stop)
;;
*)
echo "Usage: $0 start|stop" >&2
exit 3
;;
esac
 
  


Reply



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 12:11 PM
pure-ftpd does not start correctly when booting wouterzzzzz Linux - Software 0 12-31-2006 09:10 AM
pure-ftpd init script fails to start server in standalone mode Cronjob Debian 1 05-23-2006 12:11 AM
Pure-ftpd switch needed utw-mephisto Linux - General 0 12-21-2005 07:10 AM
Cannot start pure-ftpd kiaraho Linux - Software 2 02-20-2004 11:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:55 PM.

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