MonaServer2 daemon not working

99 views
Skip to first unread message

Erikzzon

unread,
Sep 6, 2021, 1:06:38 PM9/6/21
to MonaServer

Hello. I've installed MonaServer2 on ubuntu 18.04 and it's working great. But there is one issue and thats to run it by daemon.
I have used this command "sudo ./MonaServer --daemon [--pidfile=~/var/run/MonaServer.pid]" which gives this error "ServerApplication.cpp[287] Cannot set current directory of MonaServer, sources/Application.cpp[91]"

Is it an issue with monaserver or on my end?
Thanks for the help! :)

Thomas Jammet

unread,
Oct 8, 2021, 2:51:51 AM10/8/21
to MonaServer
Hi!

Sorry for the very late answer!

On my side I use systemd to install Mona as a service, you can find a tutorial here : https://medium.com/@benmorel/creating-a-linux-service-with-systemd-611b5c8b91d6
And here is the /etc/systemd/system/mona.service file content :
[Unit]
Description=MonaTiny service
[Service]
Type=forking
WorkingDirectory=/home/user/MonaServer2/MonaTiny
ExecStart=/home/user/MonaServer2/MonaTiny/MonaTiny --service
Restart=on-abort
[Install]
WantedBy=multi-user.target


I think the problem you have is that the argument is now "--service" (not --daemon), unless you are using an old version of Mona.

Regards

Thomas
Reply all
Reply to author
Forward
0 new messages