Originally posted by sarfarazahmad
View Post
Announcement
Collapse
No announcement yet.
Systemd 230 Released
Collapse
X
-
Originally posted by pininety View Post
I would disagree. I would say 90s is WAY to little. Just imagine some porgram doing a sync in the background (ownCloud client) and then you end up with a broken file jsut because it took more than 90s. No, this should be fixed in the programs because different programms have to deal different with this. Lowering the 90s, in my eyes, would only mask the problem and cause problems.
BTW, this seems to be a real problem in the linux space. The notion that you just plaster over issues instead of fixing them is something we should be very careful about as it causes tons of problems in the log run.
If a user sees a program is not exiting, then sees it's dropbox is still syncing files.
The user might want to hold on shutdown until dropbox is done.
Thus an option to wait for the program to shut down with timeouts in hours to days to unlimited time should be presented to the user.
Comment
-
Originally posted by plonoma View PostThis is why it's important for the system to communicate to the user about what programs are not exiting and why.
If a user sees a program is not exiting, then sees it's dropbox is still syncing files.
The user might want to hold on shutdown until dropbox is done.
Thus an option to wait for the program to shut down with timeouts in hours to days to unlimited time should be presented to the user.
I suspect that this might have to be a desktop-only module, since this requires GUI interactions.
Comment
-
Originally posted by plonoma View PostThe user might want to hold on shutdown until dropbox is done.
Thus an option to wait for the program to shut down with timeouts in hours to days to unlimited time should be presented to the user.
2) i know you are imagining windows-like interface, but during late shutdown no gui is running already
Comment
-
Originally posted by Ericg View Post
It is doing its job though. It gives the program a specified time limit to complete it's task. It's known behavior that systemd will do this. If that program continues to be hung after that specified grace period, it takes the gun and shoots that process in the head.
Some applications have a legitimate need to not go down one nanosecond after being told to exit. I would say 90 seconds is a bit too log for my personal tastes, BUT at least it's not "infinity".
- Likes 1
Comment
-
Originally posted by pal666 View Post1) there might be no user at computer to answer
2) i know you are imagining windows-like interface, but during late shutdown no gui is running already
- Likes 2
Comment
-
To say once again,
1) Systemd job is to shutdown/restart computer, not to wait for some broken/still working app to hack the universe.
2) its USERS JOB to NOT shutdown pc until his launched programs are finished with their tasks.
3) Systemd must not care about user at all, it must signal to all user programs to shutdown, then wait about 5 seconds per program, and then inform user about "gone wild" programs, if he wants to wait or kill.
4) Of course, Linux structure, lets say, is "not ideal" for proper implementation of proper shutdown process.
5) Once again, I cant stress enough how important it is for user to do its job and for system to do its own job, and to mot mix these together.
6) If user wants to shutdown pc after program does some job, then that program must implement its own mechanism to close itself after it finished all tasks and signal system to shutdown or something.
- Likes 1
Comment
-
Originally posted by startas View PostTo say once again,
1) Systemd job is to shutdown/restart computer, not to wait for some broken/still working app to hack the universe.
2) its USERS JOB to NOT shutdown pc until his launched programs are finished with their tasks.
3) Systemd must not care about user at all, it must signal to all user programs to shutdown, then wait about 5 seconds per program, and then inform user about "gone wild" programs, if he wants to wait or kill.
And if some program refuses to terminate on "gentle" request, it is actually bug in this program, SIGKILL being an EMERGENCY measure, giving program no any chances to save work or something, so it would eventually lead to data loss, program stands no chances to handle shutdown properly at this point, it going to be aborted immediately, as is.
4) Of course, Linux structure, lets say, is "not ideal" for proper implementation of proper shutdown process.
5) Once again, I cant stress enough how important it is for user to do its job and for system to do its own job, and to mot mix these together.
6) If user wants to shutdown pc after program does some job, then that program must implement its own mechanism to close itself after it finished all tasks and signal system to shutdown or something.
But if you're curious, manual shutdown of *nix-like system is basically like this: send SIGTERM to everyone around. Wait for timeout to let 'em finish their stuff. Wait until either timeout expired or all programs are down, whichever comes first. It it has been timeout, kill the rest with SIGKILL. Sync filesystem and unmount (or remount readonly). Turn off the power or do reboot. That's what Alt-SysRq-R-E-I-S-U-B for, for emergency sequencing of this kind of action using kernel itself, if everything else is down (R switches kbd to "raw" mode so nobody interferes with the rest of sequence). PID=1 should not be terminated though. Killing init usually causes kernel panic. So init itself is virtually best place to do shutdown sequencing, since it sequencing things and so it does not wants to commit suicide anyway.Last edited by SystemCrasher; 23 May 2016, 07:29 AM.
- Likes 4
Comment
Comment