Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

registerService.ini #89

Open
HikariNoKitsune opened this issue Jun 16, 2021 · 2 comments
Open

registerService.ini #89

HikariNoKitsune opened this issue Jun 16, 2021 · 2 comments

Comments

@HikariNoKitsune
Copy link

Hello all!

Where is this .ini file? I am unable to build things from the github as I am using this in a corporate setting, and they do not allow us to 'build from source'... So, I am stuck using the zipped prebuilt things.

Basically, we need this to run all the time, regardless if the server is actively logged into. We can set the computer to log in, but it 'has' to lock itself after 2 minutes. When this happens, using the .exe that opens the command prompt window on windows 10, the Mona Server just, stops working.

Our thought was that we would just use the 'running it as a service' method... but... this doesn't work. When we run the "MonaServer.exe /registerService [/displayName=MonaServer /description="Open Source RTMP Server" /startup=automatic]" in an admin command prompt, we get "ServerApplication.cpp[156] Impossible to load configuration file registerService.ini, sources\Application.cpp[101]" as an error....

Where is this 'registerService.ini' file, or how do I get it? if this is something that is made during a build, why is it not included with the pre-built files that are zipped up?

@thomasjammet
Copy link
Contributor

Hi!

MonaServer 1 is deprecated, you should use MonaServer2. You can download the binaries frome here :
https://sourceforge.net/projects/monaserver/files/MonaServer/MonaServer_Win32.zip/download
There is a configuration file example (MonaServer.ini) that you can customize.

Then in the Powershell Administrator run the following command:
.\MonaServer.exe -r=auto

And finally run :
services.msc

Search for MonaServer and start the service.

@HikariNoKitsune
Copy link
Author

Ah sorry, I thought I was in the MonaServer 2 GitHub... I clicked a link an OBS Forum about MonaServer 2 and just assumed it had taken me there. I will give that a shot. We have configured the MonaServer.ini file to fit what we need, but all the examples we had found for making it run as a service was to use the "MonaServer.exe /registerService [/displayName=MonaServer /description="Open Source RTMP Server" /startup=automatic]" command in a command prompt window.

We'll give it a shot with powershell and using the shown flags! :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants