on 2015 Aug 07 2:47 PM
I'm trying to start a service on the demo database in SA17 with the command:
sudo /opt/sqlanywhere17/bin64/dbsvc -as -t network -s automatic -w demosvc -n demo /opt/sqlanywhere17/demo.dbThis is substantially the same command I used successfully with SA16, but with SA17 I get the errors:
SQL Anywhere Service Utility 17.0.0.1062 Creating SQL Anywhere service: demosvc File: /etc/init.d/SA_demosvc update-rc.d: warning: start runlevel arguments (2 3 5 ) do not match SA_demosvc Default-Start values (2 3 5) update-rc.d: error: expected runlevel [0-9S] (did you forget "." ?) usage: update-rc.d [-n] [-f] <basename> remove update-rc.d [-n] <basename> defaults [NN | SS KK] update-rc.d [-n] <basename> start|stop NN runlvl [runlvl] [...] . update-rc.d [-n] <basename> disable|enable [S|2|3|4|5] -n: not really -f: forceThe 'dbsvc' command seems to be generating an invalid init script.The disable|enable API is not stable and might change in the future.
I'm running Ubuntu 14.04.1 LTS.
Has anyone else seen this?
We got the update-rc.d command line incorrect. The service script itself is not wrong, so you could run the udpate-rc.d script yourself as follows:
sudo /usr/sbin/update-rc.d SA_demosvc start 60 2 3 5 . stop 80 S 0 1 4 6 .
You should then be able to start and stop the service as normal.
I have created change request 788097 to track this issue and a fix will be included in a patch with build number at least 1235.
If you want the same behaviour as v16, you should also change your -as
to -a root
as the -as
flag has been change to be more secure and it also matches the behaviour on Windows a little more closely. The server would be started as the daemon
user, which probably has permission restrictions (which is usually a good thing).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
8 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.