-
Notifications
You must be signed in to change notification settings - Fork 58
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
Don't run in background by default #182
Comments
Interesting proposal. It seems to me like a big breaking change, considering the way we've done things since the beginning. I'll think about it, but I feel like this is a good idea overall. |
A semi-related question: is |
Running the daemon directly is currently exactly equivalent to running Nevertheless, it would be a breaking change, should it ever change, with big bold letters in the release page. |
Run in foreground, which is what service managers expect. Usages like running `exec swww` in sway's config continue to work fine. User session start-up scripts can simply run `swww &`. This is a first iteration simply removing the interface. A following patch shall start converging the two modules in this codebase into one. See: LGFae#182
Run in foreground, which is what service managers expect. Usages like running `exec swww` in sway's config continue to work fine. User session start-up scripts can simply run `swww &`. See: LGFae#182
Run in foreground, which is what service managers expect. Usages like running `exec swww` in sway's config continue to work fine. User session start-up scripts can simply run `swww &`. Fixes: LGFae#182
Having |
But i agree the, name and functionality is ambigous unless one looks at the man-page. |
Ah, this is out of date now. @musjj implemented the necessary logic to always wait for the daemon to be ready for all requests. Since this is already a breaking change, I feel like we should just drop |
How about sending a message to stderr stating that |
The problem is that because If we just deprecate |
By default,
swww
forks and runs as a background process. Every time somebody runsswww init
, the output of the command is not visible, and killing or restarting the command isn't as simple as Ctrl+c. One needs to inspect running processes and figure out which is the right one. There is no obvious indicator of what's going on, and this is especially worse on the first usage ofswww
, where it seems like it's exiting immediately and not really working properly.This runs contrary to what the gran majority of other commands do: simply run in foreground. If somebody needs to run it in background, popular shells (including
bash
,zsh
, andksh
) allow simply usingswww init &
to run in background.Service managers and supervisors also always expect services to run in foreground; demonising like this makes the job of service supervisors a lot harder, since tracking the lifetime of the child doesn't track the lifetime of the service. Eventually the solution is to always use
swww init --no-daemon
.I'd like to propose simply running in foreground like any other command and dropping the extra code for daemonisation. For any unique situation where running in background is preferible, using
swww init &
(or maybenohup swww init &
) is a trivial workaround.The text was updated successfully, but these errors were encountered: