Ubuntu 10.04
我创建了这个暴发户脚本(/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
但...
# start pure-ftpd
start: Unknown job: pure-ftpd
和
# service pure-ftpd start
start: Unknown job: pure-ftpd
有什么问题?
有必要做更多的事情吗?
是否也需要在/etc/init.d中创建一个脚本?