0

How can i set Service mssql-server to start on boot

    root@ubuntu-s-1vcpu-2gb-lon1-01:/etc/init.d# update-rc.d  mssql-server enable
update-rc.d: error: cannot find a LSB script for mssql-server
root@ubuntu-s-1vcpu-2gb-lon1-01:/etc/init.d# update-rc.d system.ctl mssql-server enable
usage: update-rc.d [-n] [-f] <basename> remove
       update-rc.d [-n] <basename> disable|enable [S|2|3|4|5]
                -n: not really
                -f: force

The disable|enable API is not stable and might change in the future.
root@ubuntu-s-1vcpu-2gb-lon1-01:/etc/init.d# update-rc.d system.ctl mssql-server -f
usage: update-rc.d [-n] [-f] <basename> remove
       update-rc.d [-n] <basename> disable|enable [S|2|3|4|5]
                -n: not really
                -f: force
2

If you are using Ubuntu 16.04, as reported in the question tag, you should use systemctl instead. To enable the service at startup:

systemctl enable mssql

To disable the service at startup:

systemctl disable mssql

Maybe the service name would be mssql-server, so try first with mysql then with mysqld

| improve this answer | |
  • 1
    Worked with systemctl enable mssql-server – Amadeu Antunes Apr 27 '18 at 14:16

Not the answer you're looking for? Browse other questions tagged or ask your own question.