[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setup.pl error on fresh 1.5 installation



 
FreeBSD uses its own rc scripts. The standard one for Starman can be seen here: https://svnweb.freebsd.org/ports/head/www/p5-Starman/files/starman.in?revision=340872&view=markup

I then defined the startup like this in /etc/rc.conf:
starman_enable="YES"
starman_config="/usr/local/www/ledgersmb15/tools/starman.psgi"
starman_flags="-I /usr/local/www/ledgersmb15/lib/ --listen :5055 --error-log /var/log/starman.log"

But that way includes were missing, configuration could not be found etc. When I use my own script then it works.

Ok. What you could do, possibly, is changing the starman.psgi file to include:

chdir "/usr/local/www/ledgersmb15";

as the first line after the shebang -- that is before any other - actual-code. If that doesn't work, you might consider:


BEGIN {
  chdir ...;
}

Yep, the one with BEGIN made the official rc script work :)

Great news! Do you have anything you want/need us to add to http://ledgersmb.org/topic/installing-ledgersmb-15 or https://github.com/ledgersmb/LedgerSMB/blob/master/README.md based on your installation experience?


 
Regards,

--
Bye,

Erik.

http://efficito.com -- Hosted accounting and ERP.
Robust and Flexible. No vendor lock-in.
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Ledger-smb-users mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-users