Comment by kimmoli
Could the reboot and shutdown commands be changed to symlinks (or something) that they use dsmetool way to reboot/shutdown ?
View ArticleAnswer by spiiroin for unreliable reboot command
You can think about it this way: - Removing battery works, but even kernel has no chance to react. - Rebooting via kernel syscall works, but systemd has no chance to react (unmount filesystems etc) -...
View ArticleComment by kimmoli
why i didn't look where it links :P Seem `shutdown -r` makes same things as `reboot` case 'r': if (kexec_loaded()) arg_action = ACTION_KEXEC; else arg_action = ACTION_REBOOT; break; But there is a...
View ArticleComment by simosagi
Interesting, both `reboot`and `shutdown` are symlinks to systemctl. Looking at systemd sources there is this: if (program_invocation_short_name) { if (strstr(program_invocation_short_name, "halt")) {...
View ArticleComment by kimmoli
when calling `dsmetool -b`, it will finally call `systemctl --no-block reboot` and, when pressing power-key to shutdown, dsme calls `systemctl --no-block shutdown` `systemctl --no-block reboot` causes...
View ArticleComment by kimmoli
this is a comment, not answering anyting :) as i didn't ask anything... and no. i'm 5 and i want to use `reboot` however `shutdown -r now` seems to do things little differently. (shouldn't reboot call...
View ArticleComment by LVPVS
Hej, First off, I'm not (yet) much into the realm of linux. But... I am using `init 6` for rebooting and `init 0` for shutting down. As root, of course. Am I doing it wrong? LVPVS out
View ArticleComment by foss4ever
How about..(devel-su first) shutdown -r now Works for me everytime..;)
View ArticleComment by foss4ever
@kimmoli Sorry for posting a reliable reboot command (atleast in my case) as an "answer" to a "non-question" seemingly looking for workarounds, alternatives or "better ways" to described unreliable...
View ArticleComment by kimmoli
@jjaone no. don't be sorry. at the time being i thought that`reboot` and `shutdown -r now` are identical, but after browsing systemd sources, seems that they aren't.
View Articleunreliable reboot command
While doing tinkering with phone, noticed that `reboot` command is kinda unreliable i.e. I just needed to remove battery from phone to get it back on. heard that better way to reboot from commandline...
View Article
More Pages to Explore .....