Skip to content

Poweroff or reboot do not logout remotely connected users. #25

@darkshram

Description

@darkshram

I'm almost done with epoch support for my distro. Very few issues left, but there is a little one that kept me awake last night. If I connect with ssh to the host and execute reboot, halt, poweroff or shutdown, I'm forced to add a '; exit' at the end of the command. Otherwise terminal (e.g. mate-terminal) keeps open and unresponsive until I close it or wait for the broken pipe. Looks like halt process does a pkill -STOP insead of a pkill -KILL.

pantallazo-2017-11-19 05-15-13

pantallazo-2017-11-19 05-27-21

Workarround for my tasks could be create wrapper scripts with 'epoch reboot; exit'. Another one could be to add an ObjectID that kill all the pts logins with pkill -KILL.

I'm attaching here the work I have done so far. I'm using the ObjectIDs from the epoch.conf example.
ALDOS-epoch-sources.tar.gz

Offtopic: I'm working on wrapper scripts for service and chkconfig. I'll share them when I'm done. Epoch will go as default init system for ALDOS on January.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions