Hi Sir Joegen;
A few comments on this feature:
1. I think it would be better the default directory of the file should
still be the home directory of the application. It may be possible this
could be mis configure and the log file could file up on a single
directory if there would be more than one instance is running.
2. When I try the option below
./opensbc_qa -d -p ./pidfile -i ./opensbc.ini --config-dir
/export/home/OSBCDebit_qa/qa_testinstance/logs -H 65536 -C 1024000
unknown option "--config-dir"
error: must specify one of -v, -h, -t, -k, -d or -x
usage:
-c -v|-d|-h|-x
and
./opensbc_qa -d -p ./pidfile -i ./opensbc.ini -f
/export/home/OSBCDebit_qa/qa_testinstance/logs -H 65536 -C 1024000
or
./opensbc_qa -d -p ./pidfile -i ./opensbc.ini -f ./logs -H 65536 -C 1024000
Im always prompted with this error
noc@osmena qa_testinstance $ ./startup.sh
unknown option "-f"
error: must specify one of -v, -h, -t, -k, -d or -x
usage:
-c -v|-d|-h|-x
-h --help output this help message and exit
-v --version display version information and exit
-d --daemon run as a daemon
-u --uid uid set user id to run as
-g --gid gid set group id to run as
-p --pid-file name or directory for pid file
-t --terminate orderly terminate process in pid file
-k --kill preemptively kill process in pid file
-s --status check to see if daemon is running
-c --console output messages to stdout rather than syslog
-l --log-file file output messages to file or directory instead of syslog
-x --execute execute as a normal program
-i --ini-file set the ini file to use, may be explicit file or
-f --config-dir the name of the config directory. default is
'.opensipstack'
a ':' separated set of directories to search.
-H --handlemax n set maximum number of file handles (set before
uid/gid)
-P --http-port n set the http listener port for the application
admin page
-a --app-name name set the identifier name that would be display in
the http home page
Joegen E. Baclor wrote:
Hi Everyone,
I've patched OpenSBC/OpenSIPStack just a while ago. This patch
changes the log, registry and default config directory of OpenSBC in
both windows and unix flavors. This is to assure that OpenSBC always
has write access to the directory. The location of this directory as
presented below MAY be bypassed using the '-f' or '--config-dir'
command line switch.
Example:
#./opensbc -d -p pidfile -f /var/home/foo/foobar/opensbc
Summary is below:
UNIX
Logs - $(HOME)/.opensipstack/OpenSBC/logs
Registry - $(HOME)/.opensipstack/OpenSBC/registry
Config - $(HOME)/.opensipstack/OpenSBC/opensbc.ini
WINDOWS
Logs - C:\Documents and Settings\%user%\Application
Data\OpenSIPStack\OpenSBC\logs
Registry- C:\Documents and Settings\%user%\Application
Data\OpenSIPStack\OpenSBC\registry
Config -
HKEY_LOCAL_MACHINE\SOFTWARE\opensipstack.org\OpenSBC\CurrentVersion
Cheers,
Joegen
Marvin De Los Angeles
Supervisor, Service Quality Assurance
121 Varick St., Suite 201
New York, NY 10013
www.solegy.com
Main: +1 212 801 2525 ext. 1114
Fax: +1 347 438 3072
Solegy LLC
Solutions to Fit Your Strategy