You are not logged in.
I'm aware that apps run in RAM, but what happens if you uninstall an app while it's running and then select an option it that would make it change one of its config files... would it then crash? Or would the file (assuming you have permissions) be rewritten, and left as a remnant when you close the now-deleted program?
.oO Komodo Dave Oo.
Offline
It would probably not crash. Local config files (you know, ~/.foo) would stick around, or get rewritten if removed. If it depended on system config files that were removed, I suppose you might get some errors about such files not being found.
Generally I would not recommend uninstalling a running program, just as a matter of caution, but sometimes it has to be done... Like, for example, with the kernel.
Offline
Yeah, I never thought about the kernel...
.oO Komodo Dave Oo.
Offline
hm i updated wine once when i had a win-program running with wine and IIRC, the update wasn't done properly...the bin still was the old i think but am not too sure now...
Offline
That's the sort of thing that I'm concerned about, hellwoofa... surely there should be some sort of check when you uninstall something, to see if it's an active process.
.oO Komodo Dave Oo.
Offline
Generally speaking, I do an "init 3" to get out of X before doing any upgrading, or simply boot into runlevel 3 to do it. It's rare that upgrade issues have cropped up, but certainly still possible.
oz
Offline
Heh, I've seen init 3 when editing inittab to change it to 5, but it didn't 'click' that it's a bash command.
Worth knowing, cheers Ozar
.oO Komodo Dave Oo.
Offline
As for the whole config file thing, it's going to depend entierly on the app itself. I know of three off the top of my head (snownews, supybot, weechat) which maintain working copies of the entire config structure in memory, and flush it all to a file, overwriting the entire contents regardless of changes made.
As for damage done while a program is running, it's only happened to me once... pacman was in the middle of a bash upgrade, and some timed script kicked in, which fires off a bash process, couldn't find bash, and crashed screen, which also killed the pacman update process... it was rather messy, but entirely my fault.
Offline
It's worrying that things like that are able to happen... I hope that in years to come everything will have been worked on sufficiently that crashing your system is nigh-on impossible. I'm aware that it's impossible to make things flawless, but I never consider what crontab events I have scheduled when doing a system update...
.oO Komodo Dave Oo.
Offline
The same for me, Komodo.
Maybe pacman could disable crontab jobs temporarily when it starts ?
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Yeah, that'd be a great idea Lone_Wolf.
Phrakture, do you think the devs (i.e. you now ) would be interested in implementing this in the future? Because it seems like a fairly major issue that your system undergoes meltdown if something's in use when it's being updated. There really ought to be some sort of check for what's running at the time of update...
.oO Komodo Dave Oo.
Offline
Because it seems like a fairly major issue that your system undergoes meltdown if something's in use when it's being updated. There really ought to be some sort of check for what's running at the time of update...
Hmm, well, it rarely has the potential to happen - mine wasn't caused by cron, but by a screen status script, and even then it only caused problems because I was running pacman inside screen. If I had been running pacman in it's own terminal, yes, screen would have crashed, but pacman would not have.
Also, I don't think it's entirely the dev's jobs to prevent users from screwing things up in an update. I mean, if you want it as safe as possible, we can always go the windows route: "Please reboot now, updates will continue when you reboot" and fully upgrade things via init or something dumb.
I haven't put alot of thought into this, but basically, as long as the terminal you're running pacman in does not crash, it will be fine... I'll try and see if there's any straight forward ways to make sure things are really secure and all, but I'd rather not have to take control over a user machine while upgrading...
Offline
I'd rather not have to take control over a user machine while upgrading...
An admirable decision, but nonetheless it'd be good to know exactly what conditions could cause pacman to throw a wobbly.
.oO Komodo Dave Oo.
Offline