Configuring UMS as service

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Post Reply
knaledge
Posts: 5
Joined: Thu Oct 29, 2015 4:32 am

Configuring UMS as service

Post by knaledge »

I'm not finding the option to deploy UMS as a service (OS X 10.11.2, Java 8). I'm sure it's super simple and I'm just missing it. Anyone?
Nadahar
Posts: 1990
Joined: Tue Jun 09, 2015 5:57 pm

Re: Configuring UMS as service

Post by Nadahar »

UMS as a service is only supported for Windows. Normally it's called daemon on Unix based OS'es and service on Windows. I see now that Apple also defines something they call a service, but that has nothing to do with the definition of a service under Windows. A service or a daemon is something that runs in the background without a user interface, and that normally is set to start with the OS. Apples definition of a service is something that runs in the backgroun, but HAS a GUI. That makes no sense to me whatsoever, what exactly is "in the background" about it then?

If what you wish is to run UMS as a daemon, you'll have to configure the daemon yourself. The Unix world is simply not standardized enough for us to automate it with a reasonable effort. From your deamon configuration/script, you need to call UMS with parameter "headless" so that it will run without a GUI (and thus not be dependent on a logged in user). Configuring options for UMS is then done entirely in a text editor by editing the UMS configuration file, normally called UMS.conf. Do not start the GUI/normal version of UMS while the daemon is running, or you will experience multiple issues.
knaledge
Posts: 5
Joined: Thu Oct 29, 2015 4:32 am

Re: Configuring UMS as service

Post by knaledge »

Ok great - when will the web UI for UMS be released? I'd love to be able to run the daemon/service then have access to the config UI via web interface. Other teams have done; see ComicStreamer. https://github.com/beville/ComicStreamer
Nadahar
Posts: 1990
Joined: Tue Jun 09, 2015 5:57 pm

Re: Configuring UMS as service

Post by Nadahar »

The web interface is there, but you can't configure UMS from there. Just point your browser to <server ip address or network name>:9001

Configuring UMS in mostly a one time thing, you configure it so it works and then you're done with the UI. The daemon and the "normal GUI version" share the same config file provided they are run as the same user, so you can just stop the deamon, start UMS GUI, do your configuraion/testing and when you're pleased, quit UMS and start the deamon. It will run with the same configuration.
Post Reply