Tested: seems great, thank you! So now
*touch --no-dereference $INI_FILE* does the job. Do you think you will keep '--emperor-nofollow' as a separate option or you'll make it the default? I would vote for the latter, but you are the boss :) Anyway let me know cause I would like to update the Emperor page of the docs and send you a pull request, unless you are already on it. *Alberto Scotto* skype:dasgazzo http://about.me/alb_i986 2013/6/29 Roberto De Ioris <[email protected]> > > > Hi all, > > > > It seems that emperor, touch and symbolic links don't get along very > well. > > > > I am using emperor with the dir:// plugin. Following the > > docs< > http://uwsgi-docs.readthedocs.org/en/latest/Emperor.html#special-configuration-variables > > > > I > > have all the inis for the different vassals being symbolic links to one > > physical file. > > > > So, the dir layout for my uWSGI config looks like this: > > > > > > - /etc/uwsgi/ > > - sites-enabled/ > > - app1.ini -> /etc/uwsgi/templates/base.conf > > - app2.ini -> /etc/uwsgi/templates/base.conf > > - .. > > - templates/ > > - default.conf > > > > The docs > > mention< > http://uwsgi-docs.readthedocs.org/en/latest/Emperor.html#special-configuration-variables > >'touch > > instance.ini' as a way to reload a single vassal, and that seems to > > me a very nice way of doing a reload. But this way *all* the instances > are > > reloaded, due to the symbolic links, I guess. > > > > I also tried with 'touch -- no-dereference' but the emperor doesn't > notice > > anything at all. > > > > (Tested right now on the latest version, 1.9.13) > > > > Finally I switched to 'uwsgi --reload $PIDFILE' > > > > It's not a problem, but I would like to know if it is a known behaviour > > (in > > this case we should probably leave a note in the docs) or whether I am > > doing something wrong. > > > > Thanks! > > > > > > *Alberto Scotto* > > > > skype:dasgazzo > > http://about.me/alb_i986 > > _______________________________________________ > > uWSGI mailing list > > [email protected] > > http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi > > > > You can try this patch that adds --emperor-nofollow: > > > https://github.com/unbit/uwsgi/commit/ff8ca18e8f3bb402a99c4392c263a9eb3b397907 > > you will need it for tyrant mode too (albeit it already has a > --emperor-tyrant-nofolow it is used for uid/gid) > > > -- > Roberto De Ioris > http://unbit.it > _______________________________________________ > uWSGI mailing list > [email protected] > http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi >
_______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
