dmodman icon indicating copy to clipboard operation
dmodman copied to clipboard

[feature request] Run as a daemon/background service

Open awsms opened this issue 2 years ago • 3 comments

awsms avatar Oct 14 '23 18:10 awsms

This is something I want myself too. I guess mpd is an example of how it would work.

dandels avatar Oct 15 '23 15:10 dandels

hey dandels, was just wondering if you abandoned this project or still working on it?

awsms avatar Aug 05 '24 19:08 awsms

There's a lot of work in the dev branch that hasn't made it into a release. I've been parenting full-time and have had quite little free time in the past year. The kid started kindergarten a week ago, though, so I now have a few weeks during which I aim to make a release.

Mod extraction works and that required a lot of UI and backend changes (the UI has multiple tabs now and some other stuff). I also have a working WIP of overlayfs in the works, but I'm unsure of what kind of UI it should have, and it's a bit fragile to use.

There's a barebones implementation of running as a "daemon" in the current dev branch. Compiling the dev branch probably(tm) works well enough but a lot of stuff there is unfinished.

If you pass -d to dmodman it won't start the TUI and will instead log everything to stdout. That's good enough for the systemd service below to work. dmodman will however bind to the same socket as the TUI does so you need to kill it in order to start the TUI. Turns out it also doesn't remove the socket when it receives SIGINT (the program can deal with this but will log a warning on startup).

This is also currently an undocumented feature since I need to integrate one of the command line parsing libraries that can generate help text.

Description=dmodman background downloader
After=network.target

[Service]
ExecStart=/usr/bin/dmodman -d

[Install]
WantedBy=default.target

dandels avatar Aug 08 '24 08:08 dandels