We have the service started with the dbsvc utility using the -o and -oe options as described here.
For Windows, both options are described in the DCX documentation but they are not part of the Service utility for Linux.
Since the log files seem to be generated fine in the Linux server, are the -o and -oe options not supported for Linux for 12.0.1.3759?
Request clarification before answering.
Both of those options are server options, not dbsvc options. The dbsvc utility works as follows:
dbsvc [dbsvc switches] -w <name> [server exe] [server switches]
The [server exe] part is not necessary on Unix. Any switch that appears before the -w is a dbsvc switch, meaning that it alters dbsvc's behaviour. Any switch that appears after the -w is a server switch, and dbsvc tells the service to use it. dbsvc itself doesn't know about server switches, which is why -oe is not documented as part of dbsvc.
The confusing part is that on Windows, -o is both a dbsvc switch and a server switch. If the -o switch appears before the -w, dbsvc uses it itself and writes its output there. If it appears after the -w, dbsvc passes it along to the service it creates. The -o switch is not supported by dbsvc on Linux.
You are trying to use the -o and -oe server switches, so they need to appear after the -w. Sorry my answer was so terse before. I hope this clarifies things.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am using this command line inside a script to define the service which is creating both log files when started:
/dbsvc -as -s Automatic -t Network -w $service_name -n $server_name -c $mem_alloc -o "$log/olog.txt" -oe "$log/oelog.txt" -os 1M -x $comm_parms "@$netbase/dbfiles.txt"
I can see all the logged info in the olog.txt file until the "Now accepting requests" line so it seems to be correct.
It looks like the Linux version of dbsvc does not support the -o switch. I've updated my answer.
@Graeme, as in my command line above, both the -o and -oe switches were placed after the -w as you described.
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.