Ubuntu 10.04
I have created this upstart script (/etc/init/pure-ftpd.conf):
# pure-ftpd - FTP server
description "Pure-FTPd server"
start on filesystem
stop on runlevel S
respawn
respawn limit 10 5
pid file /var/run/pure-ftpd.pid
console output
pre-start script
test -x /usr/local/sbin/pure-ftpd || { stop; exit 0; }
end script
exec /usr/local/sbin/pure-ftpd --maxclientsnumber 2 --maxclientsperip 10 --prohibitdotfileswrite --prohibitdotfilesread --noanonymous --chrooteveryone --dontresolve --nochmod --pidfile /var/run/pure-ftpd.pid
But…
# start pure-ftpd
start: Unknown job: pure-ftpd
and
# service pure-ftpd start
start: Unknown job: pure-ftpd
What's the problem?
Is it necessary to do something more?
Is it necessary to create one script in /etc/init.d too?
Best Answer
It usually means you have an error in the
.conf
file - for instance I'm not sure thepid
stanza is supported in 10.04,stop
can't be used in the script etc.I'd try starting the file from scratch (with only
start
,stop
etc), and then slowly building it up by adding more and more lines and testing it viastart pure-ftpd
.For example: