Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.

The -s parameter does not seem to take effect in the startup behavior as described in the documentation:

-s Sets the startup behavior for SQL Anywhere services. You can set startup behavior to Automatic or Manual. The default is Manual.

Below is the statement I used to create the service with -s Automatic :

opt/sqlanywhere12/bin32s$ sudo ./dbsvc -as -t network -w db12 -n ubuntubox -x tcpip -c 10m -s Automatic @/home/user/test/dbtest.txt

The dbsvc -g db12 statement is listing the startup=Manual as below:

...
SQLANYDIR=/opt/sqlanywhere12
STARTUP=Manual
SVC_TOOL_CMDLINE="-n ubuntubox -x tcpip -c 10m -s Automatic @/home/user/test/dbfiles.txt -ud"
...

Ubuntu 12.04 LTS 32-bit
SA 12.0.1_3723

Is the -s parameter somehow tied to the type of account of the user who created the service?

asked 02 Jun '12, 22:20

Derli%20Marcochi's gravatar image

Derli Marcochi
1.6k323877
accept rate: 33%

edited 03 Jun '12, 08:13


-s Automatic is correct; it is a flag to dbsvc, though, and above it looks like it was put in the command line for dbsrv12/dbeng12

For it to be recognized as a flag to dbsvc, and not to dbsrv12, it should appear before the -w flag when creating the service.

So the dbsvc command line should look like:

dbsvc <dbsvc_switches> -w <service_name> <dbsrv_switches>
permanent link

answered 04 Jun '12, 09:44

Dan%20Cummins's gravatar image

Dan Cummins
511614
accept rate: 41%

edited 04 Jun '12, 09:53

Graeme%20Perrow's gravatar image

Graeme Perrow
9.6k379124

Thanks for the clarification! I should have paid more attention to the syntax!

(04 Jun '12, 13:18) Derli Marcochi
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×63
×40
×18

question asked: 02 Jun '12, 22:20

question was seen: 2,891 times

last updated: 04 Jun '12, 13:18