Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-09-04 Thread SlimChances
Works fine for Linux Mint;) Logitech Media Server Version: 7.9.1 - 1504317335 @ Mon Sep 4 07:13:56 UTC 2017 Operating system: Debian - EN - utf8Platform Architecture: x86_64-linux Perl Version: 5.22.1 - x86_64-linux-gnu-thread-multi

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-09-04 Thread Michael Herger
Works! :) Thanks for the testing! -- Michael ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-09-04 Thread blackbite
mherger wrote: > Ok, I removed that flag. Please give the next update another try. > Thanks! > > -- > > Michael Hi there, did the test on 7.9.1 - 1504317335: -forced plugin change so restart message appeared -did restart from within gui -waited for lms to come up, checked ps -ax -restarted lm

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-09-04 Thread karlek
I tried it with the new 7.9.1 - 1504317335: - installed a plugin. - chose "Restart.." from within the dialog - waited until the new scan was finished - restarted via sudo systemctl restart logitechmediaserver Works! :) -

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-09-03 Thread karlek
Take your time. :) karlek's Profile: http://forums.slimdevices.com/member.php?userid=64321 View this thread: http://forums.slimdevices.com/showthread.php?t=107643 ___ unix mail

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-09-03 Thread Michael Herger
For arm there is no new deb-package, yet. (Others are already online.) I'll try as soon it is available. I'm sorry, yes, the build systems are down. I'll look into this. -- Michael ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdev

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-09-02 Thread karlek
mherger wrote: > Ok, I removed that flag. Please give the next update another try. > Thanks! > > -- > > Michael For arm there is no new deb-package, yet. (Others are already online.) I'll try as soon it is available. k

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-09-02 Thread blackbite
mherger wrote: > Ok, I removed that flag. Please give the next update another try. > Thanks! > > -- > > Michael Hi Michael, just to give you one more feedback... Did the test with 7.9.1 - 15003129892 (as @DJanGo described it perfectly. TNX). And here it´s also positive. So thank you for the

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-09-01 Thread Michael Herger
Ok, I removed that flag. Please give the next update another try. Thanks! -- Michael ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-09-01 Thread karlek
mherger wrote: > > - Stop the Server -> service logitechmediaserver stop > > - Make sure nothing with Perl is running -> killall Perl > > - Edit /usr/sbin/squeezeboxserver_safe > > - change line 41 from: > >*"$@" --norestart > /dev/null 2>&1 &* > >to: > >*"$@" > /dev/null 2>&1 &* >

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-09-01 Thread Michael Herger
Of curse its "tested" on my side and other than "first test and then wrote here" i wouldnt be able to tell "nothings changed". Thanks! -- Michael ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-09-01 Thread DJanGo
mherger wrote: > > I'm not interested in being lectured about the theoretical aspects of my > > question. Really. Just tell me whether it works or not. Thanks! > > -- > > Michael Hi Michael, ? Of curse its "tested" on my side and other than "first test and then wrote here" i wouldnt be ab

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-09-01 Thread drmatt
It's a fair question. Quite often the PID of a Daemon is tracked in /var/run/thingy and changing the PID of the process without using the official start/stop scripts means they lose track of which process to kill or check the status of. -Transcoded from Matt's brain by Tapatalk- -- Hardware:

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-09-01 Thread Michael Herger
But would you still be able to restart LMS using the OS' regular way (sysctl or whatever) once you've restarted it from within LMS? Why not? Because shit happens. Both Processes are still owned by the User squeezeboxserver. In this case (your not the User that start the Process) you need to

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-09-01 Thread DJanGo
mherger wrote: > > But would you still be able to restart LMS using the OS' regular way > (sysctl or whatever) once you've restarted it from within LMS? > > -- > > Michael Why not? Both Processes are still owned by the User squeezeboxserver. In this case (your not the User that start the P

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-09-01 Thread drmatt
Systemd uses logind to create a cgroup for the whole shebang, so it keeps track of all the process and child processes that get spawned by the start script. The stop/start actions will still work as they are invoked blind by running /etc/init.d/logitechmediaserver as normal. -Transcoded from Mat

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-08-31 Thread Michael Herger
- Stop the Server -> service logitechmediaserver stop - Make sure nothing with Perl is running -> killall Perl - Edit /usr/sbin/squeezeboxserver_safe - change line 41 from: *"$@" --norestart > /dev/null 2>&1 &* to: *"$@" > /dev/null 2>&1 &* - restart the Server - add/remove any plugin

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-08-31 Thread DJanGo
mherger wrote: > I'd say it's still on my to-do list, but not under active investigation. > But if you're saying that removing the --norestart from the startup > script was all that was needed, then I could certainly give this a try. > Could you please test the following: > > Would that still wo

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-08-31 Thread HB64
"systemctl restart logitechmediaserver" is even better, but i agree it would be great if this could be doen from within the GUI. HB64's Profile: http://forums.slimdevices.com/member.php?userid=14945 View this thread: http

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-08-31 Thread JohnB
I agree it would be helpful if restart could happen, when required, within the GUI in Ubuntu. The command line I use to restart (in Ubuntu 14.04) is: Code: sudo /etc/init.d/logitechmediaserver restart where the "restart" can also be replaced by "s

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-08-31 Thread blackbite
Sorry for tripple posting... First posts were delayed. Will test tomorrow and come back with feedback. Danke Michael Grüße Thorsten blackbite's Profile: http://forums.slimdevices.com/member.php?userid=67317 View this thre

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-08-31 Thread mherger
blackbite wrote: > ist this still "under investigation" by you? I would really like to do a > restart of lms after a plugin update via the web gui if the old wrapper > script or the --norestart option is no longer needed in "newer" debian > dists. > I´m running LMS (7.9.1 latest nightly) on a RPI

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-07-13 Thread paul-
That's where systemd does help out. It handles restarting a crashed service. But, I would assume that a wrapper script is checking to see if the PID is still running to detect a crashed service. Currently when LMS restarts itself the main PID of slimserver doesn't change. So how would allo

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-07-13 Thread Michael Herger
Not really, systemd handles old init scripts okay. I'm just not sure why --norestart was needed with the older Debian packages. Oh, that's LMS specific: there's the squeezebox_safe (or similar) wrapper script which would automatically restart LMS if it crashed. Therefore LMS should not be re-

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-07-13 Thread paul-
mherger wrote: > > For what it's worth, debian/ubuntu is now systemd > > Does this conflict with our current package? > > -- > > Michael Not really, systemd handles old init scripts okay. I'm just not sure why --norestart was needed with the older Debian packages.

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-07-13 Thread Michael Herger
For what it's worth, debian/ubuntu is now systemd Does this conflict with our current package? -- Michael ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-07-11 Thread bobertuk
mherger wrote: > > Linux.pm and Debian.pm do not redefine canRestartServer > > Oh, you're right. On Debian the --norestart startup parameter is > applied, because there's the _safe watchguard. I guess that could be > improved... > > -- > > Michael If it's possible to get LMS restart workin

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-07-11 Thread paul-
For what it's worth, debian/ubuntu is now systemd This is all I have in my lms.service, systemd doesn't care if lms restarts itself. Code: [Unit] Description=Logitech Media Server Daemon After=network-online.target mnt-media.mount Wants=network-online.target

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-07-11 Thread Michael Herger
Linux.pm and Debian.pm do not redefine canRestartServer Oh, you're right. On Debian the --norestart startup parameter is applied, because there's the _safe watchguard. I guess that could be improved... -- Michael ___ unix mailing list unix@lists.s

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-07-11 Thread paul-
> > It's not a preference set in the prefs file, but a decision taken at > runtime. Unix is the mother of Linux and Debian etc. The method would be > > different in any one of them. > Linux.pm and Debian.pm do not redefine canRestartServer ---

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-07-11 Thread Michael Herger
Unix.pm should have set canRestartServer to 1. But if something turned that off, then you won't see it. Edit your server.prefs to be sure this is still set to 1 It's not a preference set in the prefs file, but a decision taken at runtime. Unix is the mother of Linux and Debian etc. The method

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-07-11 Thread paul-
/prefs/server.prefs I just ran a test on my system. having canRestartServer: 0 in the prefs doesn't stop the server from restating itself. There is also a command line switch --norestart. You might take a look at the systemd service configuration, and make sure that it is not adding --nor

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-07-11 Thread bobertuk
paul- wrote: > Unix.pm should have set canRestartServer to 1. But if something turned > that off, then you won't see it. > > Edit your server.prefs to be sure this is still set to 1 I'm not home at the moment so can't check. Is unix.pm and server.prefs part of the LMS installation? 1 x Touc

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-07-11 Thread paul-
Unix.pm should have set canRestartServer to 1. But if something turned that off, then you won't see it. Edit your server.prefs to be sure this is still set to 1 paul-'s Profile: http://forums.slimdevices.com/member.php?us

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-07-11 Thread Michael Herger
LMS never prompts for a restart after installing plugins for me on a Pi and hasn't for years.I am pretty sure it used to when I was running a Squeezeplug but it stopped offering a restart at some point while I was still using the Squeezeplug. It depends on the Linux flavour you're using. Maybe (

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-07-11 Thread slartibartfast
mherger wrote: > > I'm using the same setup, LMS restarts itself just fine. I am running > > from the git source code, but that shouldn't make a difference. > > It might be related to the Custom.pm changes I applied. Would have to > look them up in detail... > > -- > > Michael LMS never pro

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-07-11 Thread Michael Herger
I'm using the same setup, LMS restarts itself just fine. I am running from the git source code, but that shouldn't make a difference. It might be related to the Custom.pm changes I applied. Would have to look them up in detail... -- Michael ___ un

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-07-11 Thread paul-
I'm using the same setup, LMS restarts itself just fine. I am running from the git source code, but that shouldn't make a difference. paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread:

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-07-11 Thread kidstypike
bobertuk wrote: > With Ubuntu it always says LMS will need to be restarted but never > prompts for a restart. It's been that way for as long as I can remember > and it's been that way, for me at least, on all the other flavours of > Linux that I've tried. > > Edit... > Windows has always prompte

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-07-11 Thread bobertuk
mherger wrote: > > Yeah I understand that. I want to restart LMS without needing any > > password. I know it's possible but can't figure it out. > > Doesn't LMS give you the restart prompt after updating the plugins? > > -- > > Michael With Ubuntu it always says LMS will need to be restarte

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-07-11 Thread kidstypike
mherger wrote: > > Yeah I understand that. I want to restart LMS without needing any > > password. I know it's possible but can't figure it out. > > Doesn't LMS give you the restart prompt after updating the plugins? > > -- > > Michael Funny you should ask that, I've noticed this *last few

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-07-11 Thread Michael Herger
Yeah I understand that. I want to restart LMS without needing any password. I know it's possible but can't figure it out. Doesn't LMS give you the restart prompt after updating the plugins? -- Michael ___ unix mailing list unix@lists.slimdevices.com

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-07-11 Thread Jeff07971
https://unix.stackexchange.com/questions/18830/how-to-run-a-specific-program-as-root-without-a-password-prompt In sudoers file MYUSERNAME ALL = NOPASSWD: /path/to/my/program *Players:* SliMP3,Squeezebox3 x3,Receiver,SqueezePlayer,PiCorePlayer x3,Wandboard *Server:* LMS Version: 7.9.0 - 14757

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-07-11 Thread bobertuk
Yeah I understand that. I want to restart LMS without needing any password. I know it's possible but can't figure it out. 1 x Touch 1 x Radio 1 x Boom 1 x Intel- NUC server/player running LMS 7.91 on Ubuntu 16.04 1 X Odroid-XU4 server/player running LMS 7.91 on Ubuntu 16.04 WaveIO USB into Lav

Re: [SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-07-11 Thread drmatt
Your user account would normally already be in sudoers file after an Ubuntu install so you should be able to do "sudo service LMS restart" and it will prompt for *your* password not root's. -Transcoded from Matt's brain by Tapatalk- -- Hardware: 3x Touch, 1x Radio, 2x Receivers, 1 HP Microser

[SlimDevices: Unix] LMS stop/start/restart on Ubuntu 16.04 LTS - how to do it without root password?

2017-07-11 Thread bobertuk
I've just set up LMS on Ubuntu 16.04 LTS (on an Intel NUC) and I'm trying to get LMS to restart after installing plugins. I've been using... service logitechmediaserver restart which works fine but it insists on requiring the root password. Is there any way of stop/start/restart LMS without n