Boredcat 34 Posted August 22, 2014 Share Posted August 22, 2014 Hi all, I am running MB as a Service and I know that I have to manually update MB. This issue that I am having is that when I update MB it automatically starts MB (not as service). So I have to exit MB (From the tray) and then start the service. It would be nice if the setup (or update) of MB checks if the "Run Server at Startup". If its selected start MB if not do nothing, so I can manually start the service. 6 Link to comment Share on other sites More sharing options...
TheShanMan 34 Posted August 24, 2014 Share Posted August 24, 2014 Yup. Bonus points if it would stop and start the service for you. Link to comment Share on other sites More sharing options...
oldschool 7 Posted August 25, 2014 Share Posted August 25, 2014 I'm in the same boat. I've noticed lately that I'll install the latest release (both official and beta), the server setup as a service will continually report that a new version of Media Browser Service is available. I changed the port number for MB3, so when I start the service and I go to that port, it shows my library correctly. When I install the new version, it immediately starts the server (not as a service) and opens a window pointing to the default port (8096 I believe). It asks me to setup users and everything else, so I'm not sure what's going on in the background and whether I actually have two different profiles or versions of MB3 running on my server - one configuration for the service and one configuration for the non-service. Link to comment Share on other sites More sharing options...
FrostByte 5052 Posted August 25, 2014 Share Posted August 25, 2014 X4, wish it would restart the service for those of us who prefer that method, or just not start the tray app. Link to comment Share on other sites More sharing options...
ebr 14925 Posted August 25, 2014 Share Posted August 25, 2014 The installation/update routine is designed to run completely independent of MB as it is run before MB is installed so it doesn't have any knowledge of your existing configuration and I'd rather not build that intelligence into it (the same routine is used to install MBT). However, we could potentially add a parameter that is passed to it to tell it whether or not to start the program at completion. I'm not sure we can start the service automatically as that may require elevation. @@Luke - thoughts? Link to comment Share on other sites More sharing options...
ebr 14925 Posted August 25, 2014 Share Posted August 25, 2014 Oh, wait - how do you guys running as a service "manually update"? Link to comment Share on other sites More sharing options...
oldschool 7 Posted August 25, 2014 Share Posted August 25, 2014 Stop the service inside the Server Manager window. Install the latest, stop the program by right-clicking the icon in the tray next to the clock and clicking Exit, return to the Server 2K8R2 Server Manager > Configuration > Services list, click Media Browser, then start. Link to comment Share on other sites More sharing options...
Tharnax 49 Posted August 25, 2014 Share Posted August 25, 2014 Oh, wait - how do you guys running as a service "manually update"? Remote into the server, open up the Services app, find MB server service and manually stop the service. Go to programs and launch the Media Browser server application. Let the application do it's updates, sometimes it's just server updates but sometimes other plug-ins as well have to install also requiring a server restart. Once I'm confident that all the restarts are complete, I exit the MB server from the tray. Then I go back to the Service app and restart the MB server service. Having the ability say to "Update MB Server" from the Chrome cast extension which takes a few minutes and goes through this process automatically would be awesome, especially when you have 3+ separate MB servers to update. Link to comment Share on other sites More sharing options...
ebr 14925 Posted August 25, 2014 Share Posted August 25, 2014 Ah, okay, then my idea will not work for either of those scenarios. The automatic updates was the main snag in getting the server to run as a service and we haven't been able to overcome it yet. Link to comment Share on other sites More sharing options...
FrostByte 5052 Posted August 25, 2014 Share Posted August 25, 2014 If there could be an option (checkbox or something) when installing an update that we could uncheck to not start the tray app I would settle for that. Restarting the service would just be cool Link to comment Share on other sites More sharing options...
Luke 37098 Posted August 25, 2014 Share Posted August 25, 2014 We can't start the service because we can't guarantee that the windows account will have access to start services. That's why the server cant auto-restart in service mode, which is why it can't do automatic updates. One common approach to solve this is to use two services, with one controlling the other. It's a pain and not much of a priority, so it would likely have to come from a contributing developer who decides he really wants it. As far as that setting idea, you never know, maybe. 1 Link to comment Share on other sites More sharing options...
TheShanMan 34 Posted August 26, 2014 Share Posted August 26, 2014 Not that it's a huge issue, but what is so awful about the installer requiring elevation if it doesn't have permission to stop and start the service? Since you're forcing service users to update manually, we currently have to log in with an account that is able to start services anyway, and then if you support elevation, it seems like still not being able to stop and start services would be an edge case that could be handled by just telling the user to manually stop and start the service. Just my 2 cents. In theory this sounds easy enough, but I know in practice it doesn't always work out so nicely (I'm a sw dev too), and you've got plenty of priorities vying for your time. 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