Now I’ll show you how to start your squeezelite player as a service (no
longer command line needed to start squeezelite).

STEP 1: Create .bat file
1.      Open new text file using your Text editor. 

2.      In your newly created text file we have to place the path to where
your squeezelite player is stored and the parameters you already know if
you have followed the steps in previous parts of my tutorial. My
squeezelite player is stored in default windows download folder so I
need to put in my text file the following line:

C:\Users\sptak\Downloads\squeezelite-win\squeezelite-win.exe -o 7 -n
SqueezeliteWIN -s 192.168.5.172

3.      Now we will save this file as .bat file. 

15563

Save as -> All files -> Squeezelite.bat

IMPORTANT: Do not forget to name your bat file with “.bat” extension


Now we have .bat file we will use in the next step

STEP 2: Run squeezelite player as a service
1.      Please download NSSM http://nssm.cc/download . This tool will help us
to run squuezelite as a service.
Download current NSSM version and unzip it.
VERY IMPORTANT: You cannot move this folder after running squeezelite as
a service. I strongly suggest to place this folder in the place where it
can stay forever or to the next Windows reinstallation 

2.      Now copy the path to the right NSSM folder (win32 or win64 depending
on your operating system). For me the path is:
C:\Users\sptak\Downloads\nssm-2.21.1\win32
Write it down.

3.      Now you have to open Command line with administrator privileges in
the right folder. Here is how to do it:
http://www.eightforums.com/tutorials/2754-elevated-command-prompt-open-windows-8-a.html

You should see something like this:  

15564

4.      Now write 
-nssm install-

5.      New popup window will appear:

15565

6.      Now choose in the Path line .bat file created in step above. Name
your service (Squeezlite or other name of your choice) and click
“Install service”.

That’s it. To be sure restart windows and you should see in your LMS
squeezelite running.


+-------------------------------------------------------------------+
|Filename: nssm2.JPG                                                |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=15565|
+-------------------------------------------------------------------+

------------------------------------------------------------------------
sp1976's Profile: http://forums.slimdevices.com/member.php?userid=50758
View this thread: http://forums.slimdevices.com/showthread.php?t=100893

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to