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 ?

贡献者指南