Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: honk on July 10, 2005, 08:02:50 PM

Title: problems with changes in the proftpd.conf
Post by: honk on July 10, 2005, 08:02:50 PM
hi,

when i have made some changes in the proftp.conf and i restart my server, the changes aren't there anymore.

do you have an idea, why the changes aren't saved??


bye
honk
Title: problems with changes in the proftpd.conf
Post by: cc_skavenger on July 11, 2005, 02:17:34 AM
are you putting the changes in a template fragment or changing the file directly? If changing directly, they will dissapear.  You need to change the template fragment that corresponds to the area you want to change or create the fragment you want to add.

HTH
Title: problems with changes in the proftpd.conf
Post by: honk on July 11, 2005, 10:48:39 AM
where can i find this template??

thank you for the fast answer.

honk
Title: problems with changes in the proftpd.conf
Post by: raem on July 11, 2005, 11:05:17 AM
honk

> where can i find this template??

http://no.longer.valid/phpwiki/index.php/Architecture%20overview

http://no.longer.valid/phpwiki/index.php/Customizing
Title: problems with changes in the proftpd.conf
Post by: honk on July 11, 2005, 08:15:12 PM
so which file does i have to copy in the /etc/e-smith:
the /etc/proftpd.conf or
the /etc/e-smith/templates/proftpd.conf

honk
Title: problems with changes in the proftpd.conf
Post by: cc_skavenger on July 11, 2005, 09:04:35 PM
ok, what are you trying to add, modify, or delete?

Look in /etc/e-smith/templates/etc/proftpd.conf/ for the files that are used to create the file /etc/proftpd.conf.  

The short lesson:
If you want to add or modify something in proftpd, create the directory path /etc/e-smith/templates-custom/etc/proftpd.conf/.  Add a file (numbered corresponding to where you want it placed in the file /etc/proftpd.conf) to this directory.  Expand the template with the command /sbin/e-smith/expand-template /etc/proftpd.conf and then restart the proftpd daemon with the command /etc/rc.d/init.d/proftpd restart.

That should be it.

HTH
Title: problems with changes in the proftpd.conf
Post by: CharlieBrady on July 12, 2005, 11:56:03 PM
Quote from: "cc_skavenger"

... and then restart the proftpd daemon with the command /etc/rc.d/init.d/proftpd restart.


No, don't do that. proftpd doesn't run as a daemon, and doesn't need to be restarted. It starts from xinetd, with a new instance for each connection, so will read an up to date proftpd.conf file.
Title: problems with changes in the proftpd.conf
Post by: cc_skavenger on July 13, 2005, 03:56:13 PM
Thanks for clearing that up, Charlie.  I have never really messed with proftpd.  I was just running through the steps for modifying things like squid through the template system.
Title: problems with changes in the proftpd.conf
Post by: CharlieBrady on July 13, 2005, 04:08:38 PM
Quote from: "cc_skavenger"
Thanks for clearing that up, Charlie.  I have never really messed with proftpd.  I was just running through the steps for modifying things like squid through the template system.


Yep, they're different. Without knowing the details, the only valid "general purpose" advice after making changes is:

/sbin/e-smith/signal-event post-upgrade
/sbin/e-smith/signal-event reboot

That'll work for *any* change (but can be inconvenient).