Skip to content

Script to run MS Sql Server as a SYSV service in WSL 2

Notifications You must be signed in to change notification settings

iBolski/sqlserver_service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

This contains the service script to start Sql Server in a WSL 2 instance. Since systemd isn't enabled in WSL 2, instead this script is used by Microsoft's own implementation of the old SYSV service daemon.

Copy the "mssql-server" script to the /etc/init.d folder.

sudo cp mssql-server /etc/init.d

Navigate to the /etc/init.d and set it's permissions:

sudo chmod 755 /etc/init.d/mssql-server

At this point, you can manually start and stop the service as follows:

sudo service mssql-server start

sudo service mssql-server stop

About

Script to run MS Sql Server as a SYSV service in WSL 2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages