Page 1 of 1

Problems manually starting and stopping server and console!

PostPosted: Mon Jun 01, 2015 1:10 pm
by freebo99
RE: Problems manually starting and stopping server and console!

serviio worked great before i did the below with autostart and the console worked fine as well.

i have a slower iMac and i wanted to stop the server auto starting so, i asked on the forum and was told to..

http://wiki.serviio.org/doku.php?id=mac ... _autostart

serviio automatically starts on OSX after the system boots. To disable this behaviour, follow these steps:
1 open the daemon configuration in your favorite editor: /Library/LaunchDaemons/org.serviio.server.plist

2 disable autostart by changing <key>RunAtLoad</key>
3 <true/>
to 
<key>RunAtLoad</key>
4 <false/>

5 and save the file.

done...

then to start serviio

sudo launchctl load /Applications/Serviio-Console.app/Contents/Info.plist

but i got a error about dubious file when i did this so i had to..

sudo chown root /Library/LaunchDaemons/org.serviio.server.plist

then launchctl load seemed to work as no error appeared although nothing was confirmed that it had started but if i re did sudo launchctl load /Applications/Serviio-Console.app/Contents/Info.plist it said that it was already running, but non of my devices PC, iMac, mobile phone and TV could then not see that serviio was running.

so i.. rebooted. sudo launchctl unload /Library/LaunchDaemons/org.serviio.server.plist and sudo launchctl load /Library/LaunchDaemons/org.serviio.server.plist, still nothing worked so i tried to start serviio console it asks if is alright to allow connections clicked allow then just get error cannot connect to serviio server, it does not seem to be running. exiting.... and thats it

admin please would you help?!

thx

Re: Problems manually starting and stopping server and conso

PostPosted: Fri Jun 05, 2015 3:52 pm
by zip
You're right, I've updated the wiki page with a different solution (you need to revert RunAtLoad to true)

Re: Problems manually starting and stopping server and conso

PostPosted: Sun Aug 16, 2015 1:57 am
by Cow
zip wrote:You're right, I've updated the wiki page with a different solution (you need to revert RunAtLoad to true)


Hi zip, I'm confused by those instructions on the wiki page.

Where would I put this code:

  Code:
<key>Disabled</key>
<true/>


Within this the rest of the code exactly? Does it go here like this? (see towards bottom)

  Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
   <dict>
       <key>StandardOutPath</key>
       <string>/var/log/serviio/serviio.log</string>
       <key>StandardErrorPath</key>
       <string>/var/log/serviio/serviio.log</string> 
       <key>KeepAlive</key>
       <false/>
       <key>Label</key>
       <string>org.serviio.server</string>
       <key>EnvironmentVariables</key>
       <dict>
         <key>SERVIIO_HOME</key>
         <string>/Library/Application Support/Serviio</string>
       </dict>
       <key>ProgramArguments</key>
        <array>
                <string>/bin/bash</string>
                <string>/Library/Application Support/Serviio/bin/serviio.sh</string>
        </array>
       <key>RunAtLoad</key>
       <true/>   
       <key>UserName</key>
      <string>root</string>
       <key>Disabled</key>
       <true/>

   </dict>
</plist>


Or does it goes somewhere else? Thank you. I just need to stop Serviio from running every time I restart my computer. I only need to run it on occasion, not every time I turn on my machine.

Re: Problems manually starting and stopping server and conso

PostPosted: Sat Aug 22, 2015 4:25 pm
by zip
THis looks correct - does it work?

Re: Problems manually starting and stopping server and conso

PostPosted: Sun Oct 04, 2015 7:32 pm
by GabrielLogan
zip wrote:THis looks correct - does it work?


With this
<key>Disabled</key>
<true/>

It doesn't work...

I have got this message when I start the console :
Cannot connect to Servo Server, it does not seem to be running. Exiting...

Any idea?

It would be great if the console start, and then we can start the server!

Re: Problems manually starting and stopping server and conso

PostPosted: Mon Oct 05, 2015 8:32 am
by zip
well yes, if you disable the server it will not start and you cannot start the console (it needs to connect to the server).