This is probably something silly due to my inexperience with Debian, but the command:
sudo /opt/sqlanywhere17/bin64/dbsvc -as -t network -s manual -w demosvc -n demo17 /vagrant/DBL/demo.dbreturns:
SQL Anywhere Service Utility 188.8.131.528 You do not have permission to manage services.
The documentation says "You must have permissions on the /etc/init.d directory to create, edit, or delete services.", so I changed the permissions setting on /etc/init.d with:
sudo chmod 777 /etc/init.dHowever I still get the error "You do not have permission to manage services.".
I'm running Debian 8 and SA 184.108.40.2068.
I know that Debian is using systemd to manage services, so tried looking through the dbsvc script (and those it calls) and found a script
sudo systemctl start SA_.serviceit fails and the journal entries go on about "Failed at step EXEC spawning /usr/bin/rm: No such file or directory" and by now I'm way over my head.
I have created and run SA services many times under Ubuntu with no problems, so this is a bit of a mystery. Any hints on where I've gone wrong, or what I could try next?
Ok, I got it to work by making the following changes to the distribution scripts.
#1: in the file
systemd-escape "$1"This seems to fix the problem with the service name only being
#2: in the file
/lib/systemd/systemThis seems to put the service script in the right place.
#3: in the file
/bin/rmThis provides the correct path to the
NOTE: My changes #2 and #3 may only apply to Debian 8 systems - I suspect they might break the script on others :-(.