Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] Run as a daemon/background service #9

Open
awsms opened this issue Oct 14, 2023 · 3 comments
Open

[feature request] Run as a daemon/background service #9

awsms opened this issue Oct 14, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@awsms
Copy link

awsms commented Oct 14, 2023

No description provided.

@dandels
Copy link
Owner

dandels commented Oct 15, 2023

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

@dandels dandels added the enhancement New feature or request label Nov 10, 2023
@awsms
Copy link
Author

awsms commented Aug 5, 2024

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

@dandels
Copy link
Owner

dandels commented Aug 8, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants