midgard
midgard copied to clipboard
automatic run midgard in background ?
I want to run the midgard daemon in background whenever I restart my machine (all platforms)
on Linux I wasn't able to achieve by running mg on "sudo" and it isn't working. I tried even Docker doesn't work either, it says docker image not found or something
[Desktop Entry]
Name=Midgard
Type=Application
Exec=bash -c 'sleep 60;cd /home/pi/Server7/midgard && sudo mg server'
Terminal=false
Comment=midgard.
Categories=Utility;
On Windows I am unable to achieve this
I used the below commands on admin powershell windows and even on cmd terminal. The mg.exe shows its running on the Task Manager but nothing works. When I kill the process and start using "mg daemon run" then it works fine on the terminal windows.
mg daemon install
mg daemon start
Running mg status
shows OK for both server and client for some reason.
What am I doing wrong ?