[Klone-users] Problem with session file paths (file.path at
kloned.conf)
Carlos Santín Carballo
csantin at wonesys.com
Wed Sep 24 10:57:34 EDT 2008
Once solved the compilation issues, we are facing more trouble
establishing a session...
We are developing an embedded web server for changing the configuration
of our machine. But we have a problem related with our embedded linux
operating system:
The /tmp folder doesn't exist at all in our s.o. (and we'd like to use
another folder name for temp files) , and the 'kloned' application uses
it by default to save the session file.
We have tryed two options:
- Setting the sessions to be on client side. ( session.type client )
- Setting the file.path to be another folder. ( file.path /var/tmp )
We set this options in the webapp/etc/kloned.conf file, and then
recompiled with 'make clean' and 'make'.
We tryed also to specify the .conf file manually with -f option.
The app still using the default /tmp folder.
We tryed to modify the source-code of kloned and set the folder to be
/var/tmp
strncpy(so->path, "/var/tmp", U_FILENAME_MAX);
(Line 145 of ses_file.c)
and it works!
But this is not the way it is supposed to be.
Our throughs are:
- kloned is not reading the kloned.conf file propperly.
- our kloned.conf file is not correct
I've attached the kloned.conf file
#### kloned.conf file:
# $Id: kloned.conf,v 1.1 2007/07/07 14:09:57 tat Exp $
server_list app_http
# needed if you want to run KLone daemon as root
allow_root yes
# syslog logging using LOCAL0 facility (set /etc/syslog.conf accordingly)
log
{
type syslog
syslog.facility LOG_LOCAL0
}
app_http
{
type http
addr.type IPv4
addr.port 8080
dir_root /www
file.path /opt
}
#### EOF
Which solution could you proppouse us?
Is this a known bug on kloned?
Any idea?
Thanks in advance and best regards
Carlos
--
Carlos Santín Carballo
W-onesys, SL
WDM Optical NEtworks SYStems
C/ Orient, 78-84
08172 Sant Cugat del Valles (Barcelona) - SPAIN
Tel. + 34 93 590 11 49
fax + 34 93 590 11 57
www.w-onesys.com
More information about the klone-users
mailing list