You are not logged in.

#1 2018-07-02 12:22:21

a7med-7amdy
Member
Registered: 2016-08-21
Posts: 9

Fast startup like Windows

If it possible to kill all processes except the base (root processes and DE, etc...) before hibernation as in windows (Fast startup mode) ?
in order to start a new session after hibernation

Offline

#2 2018-07-02 13:01:55

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: Fast startup like Windows

Sure. "man 7 signal" is your new casual read.

Offline

#3 2018-07-02 15:36:03

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: Fast startup like Windows

Look into systemd's target isolation as well. Maybe there are a few additional processes you have to clean up, though.

# logout users here
systemctl isolate basic.target
# kill remaining user processes here?
systemctl start default.target

Edit: I missed that you want to keep your xserver/wayland running, so isolate is probably too aggressive for you.

Last edited by progandy (2018-07-02 15:37:51)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#4 2018-07-02 17:34:13

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: Fast startup like Windows

I'd also like to add, that Windows does not hibernate the desktop session, it only hibernates a login screen kind of state.

Offline

Board footer

Powered by FluxBB