[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: shutdown-at-night kicked me off



Using lxde

Haven't had time to look any further, and today I was working at ws19 when the rest of the lab shutdown, but it didn't! It must be that it was idle the other day when it shut down.
I don't mind this behaviour at all.
Anyway I'll try to investigate further when I get time.

cheers
Nigel


On 30 August 2013 06:13, Petter Reinholdtsen <pere@hungry.com> wrote:

[Nigel Barker]
> Hi All,
>
> I was logged into a workstation tonight when it was shutdown by
> shutdown-at-night. I am a member of the teachers group.

Hm, which desktop type did you use?  This is the code used to detect if
a machine is unused or not (from
/usr/lib/shutdown-at-night/shutdown-at-night):

is_host_unused() {
    # Logged in users, or ldm connection to a remote server
    if [ "$(who)" ] ||  ps -efwww | egrep -q ' ssh .*LTSP_CLIEN[T]' ; then
        return 1
    fi
    # Uptime is less than one hour
    if (( $(cat /proc/uptime  | awk '{print int($1)}') < 3600 )) ; then
        return 1
    fi
    return 0
}

Is it not working as it should?  Any ideas how to improve it?

--
Happy hacking
Petter Reinholdtsen


--
To UNSUBSCRIBE, email to debian-edu-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/2fleh9cqjys.fsf@diskless.uio.no



Reply to: