Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started 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
-
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
-
where can i find this template??
thank you for the fast answer.
honk
-
honk
> where can i find this template??
http://no.longer.valid/phpwiki/index.php/Architecture%20overview
http://no.longer.valid/phpwiki/index.php/Customizing
-
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
-
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
-
... 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.
-
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.
-
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).