The forum will be down for scheduled maintenance on Saturday, March 4 beginning at 10am EST. Actual downtime is unknown but may be several hours.

When I attempt to create a native systemd service in SQL Anywhere on Centos 7 x86_64 build 1511:

dbsvc -t Network -as -w licensing -xs http\(port=8082\) /var/local/sadb/licensing/license.db

or a Sys V init service:

dbsvc -i lsb -t Network -as -w licensing -xs http\(port=8082\) /var/local/sadb/licensing/license.db

the file created for the service is misnamed. For example, with the lsb option, it should have been /etc/init.d/SA_licensing, but it ended up being just /etc/init.d/SA_ ... what am I doing wrong?

asked 10 Aug '16, 18:59

mmellon's gravatar image

accept rate: 0%

You are not doing anything wrong.

The dbsvc (and on Windows SQL Central) creates services with a prefix to differentiate that from possibly other services. On Windows the prefix is based upon the service type (-t) being used. On Linux/Unix it appear this prefix is just 'SA_' this is what you are seeing in action here.

DBSVC -U and -X also work with these prefixes so there should be no confusion when using our utilities.

permanent link

answered 11 Aug '16, 09:28

Nick%20Elson%20SAP%20SQL%20Anywhere's gravatar image

Nick Elson S...
accept rate: 29%


Yes, but the problem is that the service name in 17 ends up just being the prefix SA_ ... the actual service name specified by the -w switch is being dropped.

If I run the dbsvc utility from 12.0.1 and specify -w foo in my service creation options, the service names created are sqlanys_foo and SA_foo on Windows and Linux respectively.

However, the dbsvc utility from 17.0.0 - 17.0.4 creates services named sqlanys_foo on Windows and SA_ (without the specified service name) on Linux respectively, the end result being that you can't create two different database services easily on Linux with different names, because the systemd/init scripts have duplicate names. This appears to be a bug.

(11 Aug '16, 18:00) mmellon

Okay ... that is much clearer ... checking into it

(11 Aug '16, 18:59) Nick Elson S...

We have a 2nd thread indicating the same issue occurs on Debian 8 but not on Debian 7.x.

This problem may have more to do with the shell or new features to your CentOS 7.

Can you force this be used in Bash (if different from the shell you are using) and see what that produces on your side?

(12 Aug '16, 13:18) Nick Elson S...

Do check out that other thread. It appears Terry may have a solution for this.

(12 Aug '16, 18:52) Nick Elson S...
Your answer
toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 10 Aug '16, 18:59

question was seen: 169 times

last updated: 12 Aug '16, 18:52