changkun/midgard

automatic run midgard in background ?

Open

#29 建立於 2024年1月5日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)Go (20 fork)github user discovery
NeedsInvestigationhelp wanted

倉庫指標

Star
 (225 star)
PR 合併指標
 (PR 指標待抓取)

描述

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 ?

貢獻者指南