the postinst say "BTG needs a daemon.ini and client.ini, to create them run btg-config and put them in the user running btg (/home/p2p by default)" i have created and configured these files and moved under /home/p2p after some investigation.... (removing --quiet -b from /etc/init.d/btg) ----------------------------------------------------------------------- baltasar ~ # /etc/init.d/btg start * Caching service dependencies ... [ ok ] * Starting BTG Daemon ... <info> [CDataFile::Load] Unable to open file. Does it exist? [2007-Nov-28 03:08:00] btgdaemon: Could not open configuration file '/root/.btg/daemon.ini' ----------------------------------------------------------------------- --- /etc/conf.d/btg ---- BTG_USER="p2p" ------------------------ If i try start btgdaemon from the p2p user all works. Well seems btgdaemon search in the root home even if start-stop-daemon is configured with "-c ${BTG_USER}" A quick fix that works is to specify the full path of the configuration file btgdaemon -c /path/to/daemon.ini See attached files for details
Created attachment 137192 [details] btgd-confd
Created attachment 137193 [details] btgd-init
Created attachment 137195 [details] btg-0.9.6-r1.ebuild well... it's not related to the issue, but, since i'm here... I added a "make_desktop_entry" if the gtk use flag is set
Created attachment 137196 [details] btgd-init forget to remove the check for BTG_HOME not used anymore
fixed in cvs, thanks
you are welcome! just 2 things - looking at the cvs (http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/btg/files/btgd-init?view=markup) seems the wrong initd (the first i sent) (BTG_HOME no longer exist) - i done "all" (ok ok not so ALL much ;-) on amd64, there's the need of an issue on bugzilla for the stabilization request, or it's enough here? well, one last thing... can be useful another tip in the post-inst regarding to use absolute paths in daemon.ini and not the "~/" prefix (how suggested in the official how to)
woops, commited the correct init script the ebuild has to be 30 days in the tree before stabilization and considering I'm in the amd64 herd I can do it myself :p