Hi KLone team,<br><br>I hope you have had nice holidays ;)<br><br>*** My objective : ***<br>Use relative paths in kloned.conf (because the directory depends of unknown installation folder).<br><br>*** My problem : ***<br><span class="clickable" onclick="dr4sdgryt(event,"Ox")"></span>I cannot use relative paths in my kloned.conf because "./" is replaced by "/".<br>
<br>For example, <br>my KLone binary ("kloned") is located in "/home/user1/"<br>my kloned.conf specifies the log file :<br>====================================<br>log<br>{<br> type file<br>
file.basename ./tmp/log<br>}<br>====================================<br>However, if I execute :<br> $ cd /home/user1<br> /home/user1$ ./kloned<br><br>the path "." is replace by "/" instead of "/home/user1/" and the getcwd() function gives the path "/".<br>
<br>But if I execute :<br> $ cd /home/user1<br> /home/user1/$ ./kloned -F<br><br>the path "." is replace by "/home/user1/" and the getcwd() function gives the same path.<br>
<br>This problem is linked to call daemon() function in
"src/kloned/entry.c" and redefined in "libu/srcs/missing/daemon.c" that
use "chdir("/")" :<br><br>
con_err_ifm(daemon(0, 0), "daemon error"); //line 401 src/kloned/entry.c<br>
<br>
We wish have the possibilty to call daemon() with daemon(1, 0).<br>
<br>
** My question : **<br>
<br>
Could you offer us an option in the main makefile as "--enabled_chdir_daemon" to add the value 1 to daemon() function ?<br><br>
<br>
Thanks.<br><br>-- <br>Mickaël AUGER<br><br>