Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 7 of 7
  1. #1
    Dave Horoschak
    Guest

    Problem stopping Slimserver

    Every time I try to stop Slimserver in Linux (.../slimserver stop), I'm
    getting a FAILED message. I'd like to create a script that stops
    Slimserver, starts Music Magic, and restarts Slimserver, but I can't do
    this if I'm not able to reliably stop the server. None of the log files
    seem to have any indications of a problem. This occurred with 6.2.1 and
    with the 6.5b1 I just installed.

    Any ideas?
    - Dave

  2. #2
    Senior Member max.spicer's Avatar
    Join Date
    Apr 2005
    Location
    York, United Kingdom
    Posts
    1,661
    Are you running as root (or a similarly privileged user) when you try and stop it?

    Max

    Quote Originally Posted by Dave Horoschak
    Every time I try to stop Slimserver in Linux (.../slimserver stop), I'm
    getting a FAILED message. I'd like to create a script that stops
    Slimserver, starts Music Magic, and restarts Slimserver, but I can't do
    this if I'm not able to reliably stop the server. None of the log files
    seem to have any indications of a problem. This occurred with 6.2.1 and
    with the 6.5b1 I just installed.

    Any ideas?
    - Dave
    Some people think the title of this song is irrelevant,
    but it's not irrelevant - it's a hippopotamus.

  3. #3
    Senior Member
    Join Date
    Dec 2005
    Location
    Los Angeles
    Posts
    126
    Is there any reason you don't want to just kill the process?

  4. #4
    Dave Horoschak
    Guest

    Re: Problem stopping Slimserver

    Yes - I am logged in as root.
    - Dave

    max.spicer wrote:
    > Are you running as root (or a similarly privileged user) when you try
    > and stop it?
    >
    > Max
    >
    > Dave Horoschak Wrote:
    >
    >> Every time I try to stop Slimserver in Linux (.../slimserver stop), I'm
    >>
    >> getting a FAILED message. I'd like to create a script that stops
    >> Slimserver, starts Music Magic, and restarts Slimserver, but I can't do
    >>
    >> this if I'm not able to reliably stop the server. None of the log
    >> files
    >> seem to have any indications of a problem. This occurred with 6.2.1
    >> and
    >> with the 6.5b1 I just installed.
    >>
    >> Any ideas?
    >> - Dave
    >>

    >
    >
    >


  5. #5
    Dave Horoschak
    Guest

    Re: Problem stopping Slimserver

    Two reasons:

    1. I'm trying to use this as a part of a script and I have no way of
    knowing the PID ahead of time.

    2. I wasn't sure if there were any other processes or cleanup that the
    "server stop" executes that don't happen when you kill the process.
    - Dave


    rudholm wrote:
    > Is there any reason you don't want to just kill the process?
    >
    >
    >


  6. #6
    Senior Member max.spicer's Avatar
    Join Date
    Apr 2005
    Location
    York, United Kingdom
    Posts
    1,661
    'pkill slimserver' should probably do the job nicely, but you're right - it's best to use the init script. Does the init script work when you run it manually?

    Max

    PS You'll get a better response in the Linux/Unix forum.

    Quote Originally Posted by Dave Horoschak
    Two reasons:

    1. I'm trying to use this as a part of a script and I have no way of
    knowing the PID ahead of time.

    2. I wasn't sure if there were any other processes or cleanup that the
    "server stop" executes that don't happen when you kill the process.
    - Dave


    rudholm wrote:
    > Is there any reason you don't want to just kill the process?
    >
    >
    >
    Some people think the title of this song is irrelevant,
    but it's not irrelevant - it's a hippopotamus.

  7. #7
    Senior Member
    Join Date
    Dec 2005
    Location
    Los Angeles
    Posts
    126
    Quote Originally Posted by Dave Horoschak
    Two reasons:

    1. I'm trying to use this as a part of a script and I have no way of
    knowing the PID ahead of time.

    2. I wasn't sure if there were any other processes or cleanup that the
    "server stop" executes that don't happen when you kill the process.
    - Dave


    rudholm wrote:
    > Is there any reason you don't want to just kill the process?
    >
    >
    >
    pkill should solve the problem of knowing the PID. I've never had any problems just killing the slimserver. (I just send it a standard TERM signal, not a KILL, so it *should* exit gracefully by doing whatever it needs to do before actually exiting). I've never used any init script to start or stop it (I never stop it except when I'm upgrading it).

    Also, the best practice is to run slimserver as a non-privileged user. I've created a 'slim' user on my server for just this purpose.

Posting Permissions

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