zegermans;326348 Wrote: 
> Hi.
> I can see the plugin executing the shutdown command but nothing
> happens.
> Could it be a permissions thing?
> Any ideas?
Sorry to ask about obvious things that you've probably already done,
but I'm not seeing anything in the log entries that raises a red flag. 
The log entry:

[08-08-05 18:30:01.8852] Slim::Schema::forceCommit (1483) Warning:
Trying to commit transactions before DB is initialized!

shows up in there because the plugin effectively kills SqueezeCenter as
part of the prep for a shutdown.  I don't know that that's really
necessary, but this aspect goes back to Adrian C's original code.  The
plugin makes no attempt to recover gracefully from a failed shutdown
attempt. 

Did you follow all the instructions in the read me about editing the
/etc/sudoers file?

Code:
--------------------
    
  Add the squeezecenter user to the /etc/shutdown.allow file:
  touch /etc/shutdown.allow
  echo 'squeezecenter' >>/etc/shutdown.allow
  
  Edit the /etc/sudoers file:
  
  Comment out the line with: Defaults requiretty
  so that it reads: #Defaults requiretty
  
  Add these lines to the end of the sudoers file:
  
        ## Allows members of the squeezecenter group to shutdown this system
        %squeezecenter ALL=NOPASSWD:/sbin/shutdown
        %squeezecenter ALL=NOPASSWD:/usr/sbin/pm-suspend
        %squeezecenter ALL=NOPASSWD:/usr/sbin/pm-hibernate
  
--------------------


Also, have you looked at epoch1970's debian install notes distributed
with the plugin?

Have you verified that the paths to shutdown, pm-suspend, pm-hibernate
are actually /sbin/shutdown, /usr/sbin/pm-suspend,
/usr/sbin/pm-hibernate?  If those utilities reside at paths other than
those above, you'll need to edit the sudoers file to accurately reflect
those paths and you'll need to go into the plugin's settings page and
fix up the command paths there too. 

Sorry I don't have any easy answers.  Linux seems like an entire
ecosystem and I'm used to dealing with just a single species: Fedora.


-- 
gharris999
------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

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

Reply via email to