Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 3 of 3
  1. #1

    Restart Slimserver from Command line

    I'm having problems having version SS 6.5.1 stop when I'm playing music remotely. This doesn't happen all the time but when it does I would like to use the command line to "restart" slimserver. I'm currently using VNC to do this but I want to simplify this process by using the command line.

    Background:
    **************
    I have OpenSSH installed on my Windows XP system


    I have tried to use some commands via "putty/ssh" and got the following errors.

    C:\Program Files\SlimServer\server>slim.exe -remove
    OpenSCManager failed: Access is denied

    C:\Program Files\SlimServer\server>slim.exe
    2006-09-20 10:43:47.2052 C:\Program Files\SlimServer\server\Cache\my.cnf: Permission denied at /PerlApp/Slim/Utils/MySQLHelper.pm line 164.

    Could someone tell me what I can do to correct this.

    Is there a direct command to "restart" slimserver from the command line?

    I have printed out all the commands from slim.exe --help and didn't recognize anything to restart slimserver.

    TIA

  2. #2
    Senior Member JJZolx's Avatar
    Join Date
    Apr 2005
    Location
    Colorado
    Posts
    11,547
    Quote Originally Posted by pc4ever1 View Post
    Is there a direct command to "restart" slimserver from the command line?

    I have printed out all the commands from slim.exe --help and didn't recognize anything to restart slimserver.
    Does SlimServer running as a service on your system? If so, you'll want to start up the SlimServer service.

    net start slimvc

    To restart a running server, you'd need to stop it first with

    net stop slimsvc

    But you may get the same error message that you get when running slim.exe directly. My guess is that the crashing SlimServer is somehow leaving a lock on the my.cnf file (which I believe SlimServer rewrites when it starts up). You can try to delete the file before restarting SlimServer, but inadvertent file locks can sometimes be a PITA to deal with.

  3. #3
    Senior Member Paul_B's Avatar
    Join Date
    Dec 2005
    Location
    UK
    Posts
    355
    For locked files in XP have a look at unlocker, http://ccollomb.free.fr/unlocker/ or ProcessXP (not for the faint hearted) http://www.sysinternals.com/Utilitie...sExplorer.html
    Paul

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
    Squeeze Server 7.9 on Windows 2012 R2
    SB3 x1, Squeezebox Boom x 1 (Deceased - 2018), Radio with (battery) x 1, Touch x 1, piCoreplayer (with HifiBerry DAC+ Pro) x 1
    RIP - dBpowerAMP R16 to FLAC
    ID3 Tags - MP3Tag v2.89 & Discogs
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •