hurricanehrndz 149 Posted December 9, 2015 Share Posted December 9, 2015 Okay found the issue and it will be fixed in next release for now, you can run the following and it should fix it for you. sudo chmod +x /usr/lib/emby-server/restart.sh 2 Link to comment Share on other sites More sharing options...
leezy 1 Posted December 9, 2015 Share Posted December 9, 2015 That seemed to fix it. Thank you very much! 1 Link to comment Share on other sites More sharing options...
nicheplayer 8 Posted December 11, 2015 Share Posted December 11, 2015 sudo chmod +x /usr/lib/emby-server/restart.sh I seem to be having this issue too with Debian 7. Tried the code above and got the following when I tried to restart via the web interface (I'm on server version Version 3.0.5781.4). I restarted via the command line, reloaded the page, and tried restart again. Only thing that happened the second time is that the SHUTDOWN button grayed it. Had to restart manually again.... Error Code NullReferenceException Message Object reference not set to an instance of an object Stack Trace at ServiceStack.ServiceStackHost.TryResolve[T] () <0x415cc720 + 0x0002c> in <filename unknown>:0 at ServiceStack.Host.ServiceRunner`1[TRequest].AfterEachRequest (IRequest requestContext, ServiceStack.Host.TRequest request, System.Object response) <0x415ce000 + 0x00045> in <filename unknown>:0 at ServiceStack.Host.ServiceRunner`1[TRequest].HandleException (IRequest request, ServiceStack.Host.TRequest requestDto, System.Exception ex) <0x4172e4e0 + 0x00090> in <filename unknown>:0 at ServiceStack.Host.ServiceRunner`1[TRequest].Execute (IRequest request, System.Object instance, ServiceStack.Host.TRequest requestDto) <0x415cbc90 + 0x00895> in <filename unknown>:0 at ServiceStack.Host.ServiceRunner`1[TRequest].Process (IRequest requestContext, System.Object instance, System.Object request) <0x415cb590 + 0x000c0> in <filename unknown>:0 at ServiceStack.Host.ServiceExec`1[TService].Execute (IRequest request, System.Object instance, System.Object requestDto, System.String requestName) <0x415cb300 + 0x00106> in <filename unknown>:0 at ServiceStack.Host.ServiceRequestExec`2[TService,TRequest].Execute (IRequest requestContext, System.Object instance, System.Object request) <0x415cb290 + 0x0005b> in <filename unknown>:0 at ServiceStack.Host.ServiceController+<>c__DisplayClassf+<>c__DisplayClass11.<RegisterServiceExecutor>b__e (IRequest reqCtx, System.Object req) <0x415cb240 + 0x00040> in <filename unknown>:0 at ServiceStack.Host.ServiceController.ManagedServiceExec (ServiceStack.Host.ServiceExecFn serviceExec, IService service, IRequest request, System.Object requestDto) <0x415cac30 + 0x001a3> in <filename unknown>:0 at ServiceStack.Host.ServiceController+<>c__DisplayClassf.<RegisterServiceExecutor>b__d (IRequest requestContext, System.Object dto) <0x415c8ba0 + 0x0022b> in <filename unknown>:0 at ServiceStack.Host.ServiceController.Execute (System.Object requestDto, IRequest req) <0x415c8600 + 0x00098> in <filename unknown>:0 at ServiceStack.HostContext.ExecuteService (System.Object request, IRequest httpReq) <0x415c8550 + 0x0005b> in <filename unknown>:0 at ServiceStack.Host.Handlers.ServiceStackHandlerBase.ExecuteService (System.Object request, IRequest httpReq) <0x415c8520 + 0x00013> in <filename unknown>:0 at ServiceStack.Host.RestHandler.GetResponse (IRequest request, System.Object requestDto) <0x415c8440 + 0x00077> in <filename unknown>:0 at ServiceStack.Host.RestHandler.ProcessRequestAsync (IRequest httpReq, IResponse httpRes, System.String operationName) <0x415ab270 + 0x00627> in <filename unknown>:0 Link to comment Share on other sites More sharing options...
hurricanehrndz 149 Posted December 11, 2015 Share Posted December 11, 2015 Please see if the restart script works manually from the command line. You can find it in /var/lib/emby-server Sent from my D6603 using Tapatalk Link to comment Share on other sites More sharing options...
maiky jonathan gomes 0 Posted December 11, 2015 Share Posted December 11, 2015 my friend , I'm using ubutu 15:04 , Emby only accepts films from the main hd how I put the secondary hd to be accepted into Emby ? Link to comment Share on other sites More sharing options...
hurricanehrndz 149 Posted December 11, 2015 Share Posted December 11, 2015 (edited) Check user permissions, the user emby needs read and write.Sent from my D6603 using Tapatalk Edited December 11, 2015 by hurricanehrndz Link to comment Share on other sites More sharing options...
nicheplayer 8 Posted December 12, 2015 Share Posted December 12, 2015 Please see if the restart script works manually from the command line. You can find it in /var/lib/emby-server I don't see it? root@machine:/var/lib/emby-server# ls -la total 44 drwxr-xr-x 11 nicheplayer007 emby 4096 Dec 6 16:39 . drwxr-xr-x 38 root root 4096 Dec 5 16:28 .. drwxr-xr-x 12 nicheplayer007 emby 4096 Dec 9 23:24 cache drwxr-xr-x 4 nicheplayer007 emby 4096 Dec 7 09:04 config drwxr-xr-x 8 nicheplayer007 emby 4096 Dec 10 21:00 data drwxr-xr-x 2 nicheplayer007 emby 4096 Dec 5 16:35 localization drwxr-xr-x 2 nicheplayer007 emby 4096 Dec 11 21:55 logs drwxr-xr-x 5 nicheplayer007 emby 4096 Dec 6 03:00 metadata drwxr-xr-x 3 nicheplayer007 emby 4096 Dec 5 16:35 root drwxr-xr-x 2 nicheplayer007 emby 4096 Dec 5 16:35 ssl drwxr-xr-x 2 nicheplayer007 emby 4096 Dec 9 22:15 transcoding-temp Link to comment Share on other sites More sharing options...
nicheplayer 8 Posted December 12, 2015 Share Posted December 12, 2015 But it IS in /usr/lib/emby-server#. Is that my problem? Link to comment Share on other sites More sharing options...
nicheplayer 8 Posted December 12, 2015 Share Posted December 12, 2015 And when I run ./restart.sh from that directory, I get restart: Unknown instance: Link to comment Share on other sites More sharing options...
hurricanehrndz 149 Posted December 12, 2015 Share Posted December 12, 2015 It's in the right location. How did you start emby-sever Sent from my D6603 using Tapatalk Link to comment Share on other sites More sharing options...
nicheplayer 8 Posted December 12, 2015 Share Posted December 12, 2015 It's in the right location. How did you start emby-sever Last time I started manually I used /etc/init.d/emby-server start Which worked. Will updating to the latest (.5) release help at all? I'm willing to give that a shot. Link to comment Share on other sites More sharing options...
hurricanehrndz 149 Posted December 12, 2015 Share Posted December 12, 2015 Okay, well does /etc/init.d/emby-server restart work? 1 Link to comment Share on other sites More sharing options...
nicheplayer 8 Posted December 12, 2015 Share Posted December 12, 2015 Okay, well does /etc/init.d/emby-server restart work? Yup! So I can restart from the command line but not from the server web interface. Go figure. Link to comment Share on other sites More sharing options...
hurricanehrndz 149 Posted December 12, 2015 Share Posted December 12, 2015 Okay, well you can try the new restart script. It's not tested but I guess eh what the heck. Replace the old one, with this one and report back: https://raw.githubusercontent.com/hurricanehrndz/Emby.Build/ft_docker/builders/emby-server/debfiles/restart.sh Link to comment Share on other sites More sharing options...
nicheplayer 8 Posted December 12, 2015 Share Posted December 12, 2015 Okay, well you can try the new restart script. It's not tested but I guess eh what the heck. Replace the old one, with this one and report back: https://raw.githubusercontent.com/hurricanehrndz/Emby.Build/ft_docker/builders/emby-server/debfiles/restart.sh I notice the restart.sh file has -rwxr-xr-x permissions. Is that a problem? Here's the output (which I get in my browser when I hit restart server in the web interface): Response Status Error Code NullReferenceException Message Object reference not set to an instance of an object Stack Trace at ServiceStack.ServiceStackHost.TryResolve[T] () <0x41f2eed0 + 0x0002c> in <filename unknown>:0 at ServiceStack.Host.ServiceRunner`1[TRequest].AfterEachRequest (IRequest requestContext, ServiceStack.Host.TRequest request, System.Object response) <0x41f50f20 + 0x00041> in <filename unknown>:0 at ServiceStack.Host.ServiceRunner`1[TRequest].HandleException (IRequest request, ServiceStack.Host.TRequest requestDto, System.Exception ex) <0x4202b310 + 0x00090> in <filename unknown>:0 at ServiceStack.Host.ServiceRunner`1[TRequest].Execute (IRequest request, System.Object instance, ServiceStack.Host.TRequest requestDto) <0x41f2e480 + 0x00885> in <filename unknown>:0 at ServiceStack.Host.ServiceRunner`1[TRequest].Process (IRequest requestContext, System.Object instance, System.Object request) <0x41f2ddb0 + 0x000bc> in <filename unknown>:0 at ServiceStack.Host.ServiceExec`1[TService].Execute (IRequest request, System.Object instance, System.Object requestDto, System.String requestName) <0x41f2db30 + 0x00106> in <filename unknown>:0 at ServiceStack.Host.ServiceRequestExec`2[TService,TRequest].Execute (IRequest requestContext, System.Object instance, System.Object request) <0x41f2dac0 + 0x0005b> in <filename unknown>:0 at ServiceStack.Host.ServiceController+<>c__DisplayClassf+<>c__DisplayClass11.<RegisterServiceExecutor>b__e (IRequest reqCtx, System.Object req) <0x41f2da70 + 0x00040> in <filename unknown>:0 at ServiceStack.Host.ServiceController.ManagedServiceExec (ServiceStack.Host.ServiceExecFn serviceExec, IService service, IRequest request, System.Object requestDto) <0x41f2d4a0 + 0x0019f> in <filename unknown>:0 at ServiceStack.Host.ServiceController+<>c__DisplayClassf.<RegisterServiceExecutor>b__d (IRequest requestContext, System.Object dto) <0x41f2b120 + 0x00217> in <filename unknown>:0 at ServiceStack.Host.ServiceController.Execute (System.Object requestDto, IRequest req) <0x41f2abb0 + 0x00098> in <filename unknown>:0 at ServiceStack.HostContext.ExecuteService (System.Object request, IRequest httpReq) <0x41f2ab00 + 0x0005b> in <filename unknown>:0 at ServiceStack.Host.Handlers.ServiceStackHandlerBase.ExecuteService (System.Object request, IRequest httpReq) <0x41f2aad0 + 0x00013> in <filename unknown>:0 at ServiceStack.Host.RestHandler.GetResponse (IRequest request, System.Object requestDto) <0x41f2a580 + 0x00077> in <filename unknown>:0 at ServiceStack.Host.RestHandler.ProcessRequestAsync (IRequest httpReq, IResponse httpRes, System.String operationName) <0x41f23ca0 + 0x0061f> in <filename unknown>:0 Link to comment Share on other sites More sharing options...
hurricanehrndz 149 Posted December 12, 2015 Share Posted December 12, 2015 Did you try the restart script on its own? Are you verifying that the process number is the same? The permissions are perfectly fine. Please print /etc/sudoers.d/emby followed by ps -aux |grep emby then /usr/lib/emby-server/restart.sh <---- ensure this is the new script that i just posted then run ps -aux|grep emby Please print everything that I have asked for. Link to comment Share on other sites More sharing options...
nicheplayer 8 Posted December 12, 2015 Share Posted December 12, 2015 Did you try the restart script on its own? I ran /etc/init.d/emby-server restart successfully. Is that what you mean? Are you verifying that the process number is the same? No. How should I? Please print /etc/sudoers.d/emby #Allow emby to start, stop and restart itself emby ALL=(ALL) NOPASSWD: /bin/systemctl restart emby-server.service emby ALL=(ALL) NOPASSWD: /etc/init.d/emby-server * emby ALL=(ALL) NOPASSWD: /usr/sbin/service emby-server * emby ALL=(ALL) NOPASSWD: /usr/sbin/invoke-rc.d emby-server * #Allow the server to mount iso images emby ALL=(ALL) NOPASSWD: /bin/mount emby ALL=(ALL) NOPASSWD: /bin/umount Defaults:emby !requiretty followed by ps -aux |grep emby warning: bad ps syntax, perhaps a bogus '-'? See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ root 12326 0.0 0.0 37072 1440 pts/0 S 23:25 0:00 su -s /bin/sh -c exec "$0" "$@" nicheplayer007 -- env MONO_THREADS_PER_CPU=500 MONO_GC_PARAMS=nursery-size=128m /usr/bin/mono-sgen --optimize=all /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh 1000 12334 3.5 13.8 598840 290076 ? Ssl 23:25 0:31 /usr/bin/mono-sgen --optimize=all /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh root 12599 0.0 0.0 7724 940 pts/0 S+ 23:39 0:00 grep emby then /usr/lib/emby-server/restart.sh <---- ensure this is the new script that i just posted Done. No feedback. then run ps -aux|grep emby warning: bad ps syntax, perhaps a bogus '-'? See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ root 12326 0.0 0.0 37072 1440 pts/0 S 23:25 0:00 su -s /bin/sh -c exec "$0" "$@" nicheplayer007 -- env MONO_THREADS_PER_CPU=500 MONO_GC_PARAMS=nursery-size=128m /usr/bin/mono-sgen --optimize=all /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh 1000 12334 3.3 13.8 598840 290084 ? Ssl 23:25 0:34 /usr/bin/mono-sgen --optimize=all /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh root 12657 0.0 0.0 7724 944 pts/0 S+ 23:42 0:00 grep emby Link to comment Share on other sites More sharing options...
hurricanehrndz 149 Posted December 12, 2015 Share Posted December 12, 2015 (edited) #Allow emby to start, stop and restart itself niceplayer007 ALL=(ALL) NOPASSWD: /bin/systemctl restart emby-server.service niceplayer007 ALL=(ALL) NOPASSWD: /etc/init.d/emby-server * niceplayer007 ALL=(ALL) NOPASSWD: /usr/sbin/service emby-server * niceplayer007 ALL=(ALL) NOPASSWD: /usr/sbin/invoke-rc.d emby-server * #Allow the server to mount iso images niceplayer007 ALL=(ALL) NOPASSWD: /bin/mount niceplayer007 ALL=(ALL) NOPASSWD: /bin/umount Defaults:niceplayer007 !requiretty Edit /etc/sudoers.d/emby replace emby with niceplayer007 Thanks for the feedback, update will fix this in the future. Edited December 12, 2015 by hurricanehrndz 1 Link to comment Share on other sites More sharing options...
nicheplayer 8 Posted December 12, 2015 Share Posted December 12, 2015 Here's what /etc/sudoers.d/emby looks like now: #Allow emby to start, stop and restart itself nicheplayer007 ALL=(ALL) NOPASSWD: /bin/systemctl restart emby-server.service nicheplayer007 ALL=(ALL) NOPASSWD: /etc/init.d/emby-server * nicheplayer007 ALL=(ALL) NOPASSWD: /usr/sbin/service emby-server * nicheplayer007 ALL=(ALL) NOPASSWD: /usr/sbin/invoke-rc.d emby-server * #Allow the server to mount iso images nicheplayer007 ALL=(ALL) NOPASSWD: /bin/mount nicheplayer007 ALL=(ALL) NOPASSWD: /bin/umount Defaults:nicheplayer007 !requiretty And here's what I get after trying a restart (via http://MYIPADDRESS:8096/web/dashboard.html): Response Status Error CodeNullReferenceExceptionMessageObject reference not set to an instance of an objectStack Trace at ServiceStack.ServiceStackHost.TryResolve[T] () <0x41b31870 + 0x0002c> in <filename unknown>:0 at ServiceStack.Host.ServiceRunner`1[TRequest].AfterEachRequest (IRequest requestContext, ServiceStack.Host.TRequest request, System.Object response) <0x41b36800 + 0x00045> in <filename unknown>:0 at ServiceStack.Host.ServiceRunner`1[TRequest].HandleException (IRequest request, ServiceStack.Host.TRequest requestDto, System.Exception ex) <0x41bf07c0 + 0x00090> in <filename unknown>:0 at ServiceStack.Host.ServiceRunner`1[TRequest].Execute (IRequest request, System.Object instance, ServiceStack.Host.TRequest requestDto) <0x41b30de0 + 0x00899> in <filename unknown>:0 at ServiceStack.Host.ServiceRunner`1[TRequest].Process (IRequest requestContext, System.Object instance, System.Object request) <0x41b306e0 + 0x000c4> in <filename unknown>:0 at ServiceStack.Host.ServiceExec`1[TService].Execute (IRequest request, System.Object instance, System.Object requestDto, System.String requestName) <0x41b30450 + 0x0010a> in <filename unknown>:0 at ServiceStack.Host.ServiceRequestExec`2[TService,TRequest].Execute (IRequest requestContext, System.Object instance, System.Object request) <0x41b303e0 + 0x0005b> in <filename unknown>:0 at ServiceStack.Host.ServiceController+<>c__DisplayClassf+<>c__DisplayClass11.<RegisterServiceExecutor>b__e (IRequest reqCtx, System.Object req) <0x41b30390 + 0x0003c> in <filename unknown>:0 at ServiceStack.Host.ServiceController.ManagedServiceExec (ServiceStack.Host.ServiceExecFn serviceExec, IService service, IRequest request, System.Object requestDto) <0x41b2fda0 + 0x001ab> in <filename unknown>:0 at ServiceStack.Host.ServiceController+<>c__DisplayClassf.<RegisterServiceExecutor>b__d (IRequest requestContext, System.Object dto) <0x41b2d8e0 + 0x00223> in <filename unknown>:0 at ServiceStack.Host.ServiceController.Execute (System.Object requestDto, IRequest req) <0x41b2d340 + 0x000a0> in <filename unknown>:0 at ServiceStack.HostContext.ExecuteService (System.Object request, IRequest httpReq) <0x41b2d290 + 0x0005b> in <filename unknown>:0 at ServiceStack.Host.Handlers.ServiceStackHandlerBase.ExecuteService (System.Object request, IRequest httpReq) <0x41b2d260 + 0x00013> in <filename unknown>:0 at ServiceStack.Host.RestHandler.GetResponse (IRequest request, System.Object requestDto) <0x41b2ccf0 + 0x00083> in <filename unknown>:0 at ServiceStack.Host.RestHandler.ProcessRequestAsync (IRequest httpReq, IResponse httpRes, System.String operationName) <0x41b26000 + 0x00643> in <filename unknown>:0 Link to comment Share on other sites More sharing options...
hurricanehrndz 149 Posted December 12, 2015 Share Posted December 12, 2015 (edited) The log from emby does nothing for me, please run the restart script again from the command line. And run the ps aux | grep commands again. Please print the contents of restart.sh and the permissions as well. Edited December 12, 2015 by hurricanehrndz Link to comment Share on other sites More sharing options...
nicheplayer 8 Posted December 12, 2015 Share Posted December 12, 2015 please run the restart script again from the command line # /etc/init.d/emby-server restart [ ok ] Stopping emby-server daemon:[....] apparently already stopped. . ok [ ok ] Starting emby-server daemon:. And run the ps aux | grep commands again. Does it matter from which directory I do that? ps -aux |grep emby = warning: bad ps syntax, perhaps a bogus '-'? See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ root 13566 0.0 0.0 37072 1436 pts/0 S 00:25 0:00 su -s /bin/sh -c exec "$0" "$@" nicheplayer007 -- env MONO_THREADS_PER_CPU=500 MONO_GC_PARAMS=nursery-size=128m /usr/bin/mono-sgen --optimize=all /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh 1000 13574 10.4 14.3 603992 301104 ? Ssl 00:25 0:18 /usr/bin/mono-sgen --optimize=all /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh root 13658 0.0 0.0 7724 940 pts/0 R+ 00:28 0:00 grep emby Link to comment Share on other sites More sharing options...
hurricanehrndz 149 Posted December 12, 2015 Share Posted December 12, 2015 (edited) lol! I need you to run ps aux | grep emby sudo -u nicheplayer007 /usr/lib/emby-server/restart.sh ps aux | grep emby ls -la /usr/lib/emby-server/restart.sh cat /usr/lib/emby-server/restart.sh Thanks. Please correct any typos, I might have typed the user name wrong. You did well previously. We need to get /usr/lib/emby-server/restart.sh to work, otherwise the web interface never will. So do not worry about the interface. Edited December 12, 2015 by hurricanehrndz Link to comment Share on other sites More sharing options...
nicheplayer 8 Posted December 12, 2015 Share Posted December 12, 2015 ps aux | grep emby at the command line returns root 13566 0.0 0.0 37072 1436 pts/0 S 00:25 0:00 su -s /bin/sh -c exec "$0" "$@" nicheplayer007 -- env MONO_THREADS_PER_CPU=500 MONO_GC_PARAMS=nursery-size=128m /usr/bin/mono-sgen --optimize=all /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh 1000 13574 3.8 14.3 604012 301248 ? Ssl 00:25 0:33 /usr/bin/mono-sgen --optimize=all /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh root 13862 0.0 0.0 7724 940 pts/0 S+ 00:40 0:00 grep emby When I run sudo -u nicheplayer007 /usr/lib/emby-server/restart.sh I get a prompt to enter the password for nicheplayer007. I do, hit return, and get no feedback, just a return to the command prompt. ps aux | grep emby root 13566 0.0 0.0 37072 1436 pts/0 S 00:25 0:00 su -s /bin/sh -c exec "$0" "$@" nicheplayer007 -- env MONO_THREADS_PER_CPU=500 MONO_GC_PARAMS=nursery-size=128m /usr/bin/mono-sgen --optimize=all /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh 1000 13574 3.3 17.0 660492 356560 ? Ssl 00:25 0:45 /usr/bin/mono-sgen --optimize=all /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh root 14025 0.0 0.0 7724 944 pts/0 S+ 00:48 0:00 grep emby ls -la /usr/lib/emby-server/restart.sh -rwxr-xr-x 1 root root 778 Dec 11 23:20 /usr/lib/emby-server/restart.sh cat /usr/lib/emby-server/restart.sh #!/bin/bash NAME=emby-server restart_cmds=("/bin/s6-svc -t /var/run/s6/services/${NAME}" \ "systemctl restart ${NAME}.service" \ "service ${NAME} restart" \ "/etc/init.d/${NAME} restart" \ "invoke-rc.d ${NAME} restart") PIDFILE=`find /var/run -name "emby*.pid" -print -quit` [ -n "$PIDFILE" ] && EMBY_PID=`cat ${PIDFILE} 2> /dev/null || true` for restart_cmd in "${restart_cmds[@]}"; do exec /usr/bin/sudo $restart_cmd > /dev/null 2>&1 || true sleep 1 if ! kill -0 $EMBY_PID > /dev/null; then break fi done # is emby still running? Might have been manually started if kill -0 $EMBY_PID > /dev/null 2>&1; then CPIDS=$(pgrep -P $EMBY_PID) sleep 2 && kill -KILL $CPIDS kill -TERM $CPIDS > /dev/null 2>&1 # restart it exec emby-server start & fi Link to comment Share on other sites More sharing options...
hurricanehrndz 149 Posted December 12, 2015 Share Posted December 12, 2015 Are you logged in as nicheplayer007? and do you get a prompt when you just run /usr/lib/emby-server/restart.sh Link to comment Share on other sites More sharing options...
nicheplayer 8 Posted December 12, 2015 Share Posted December 12, 2015 Are you logged in as nicheplayer007? I was logged in as root. I'm logged in as nicheplayer007 now. When I do /usr/lib/emby-server/restart.sh as nicheplayer007, I get $ /usr/lib/emby-server/restart.sh [sudo] password for nicheplayer007: $ I get the same thing when doing it as root. No feedback other than a return to the system prompt. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now