=== Remy^ is now known as Coca|ne | ||
=== sharek_ is now known as sharek | ||
neyder | Hello, sobbing because of netplan on 18.04 | 18:16 |
---|---|---|
neyder | Re configuring all machines one by one | 18:17 |
blackflow | neyder: don't use it if you don't want to? | 18:17 |
blackflow | netplan is configuration _abstraction_ that uses a backend like systemd-networkd on servers. You can totally use networkd directly, or revert to ifupdown, and ignore netplan if that's what you want. | 18:19 |
aditya | hi how can I make my ubuntu-server to suspend automatically after being idle | 21:14 |
blackflow | you'll have to define "idle" first | 21:17 |
OerHeks | and your solution to wake up again.. https://help.ubuntu.com/community/WakeOnLan | 21:18 |
aditya | blackflow: I have changed the logind.conf and IdleAction=suspend and IdleActionSec=10min but still the server does not seem to be going into suspend mode automatically | 21:21 |
blackflow | aditya: you'll have to define "idle" first | 21:21 |
blackflow | logind concept of "idle" is no user interaction | 21:22 |
blackflow | not really a server role | 21:22 |
aditya | blackflow: where do I define "Idle" | 21:22 |
blackflow | in your use case. what exactly do you want to achieve, what's the set of circumstances that should put the server to sleep. | 21:23 |
blackflow | is it "no key pressed for 10 minutes", or "no mouse moved for 10 minutes" or "no http request for 10 minutes" or what | 21:23 |
aditya | well I have plex, deluge and file server running so when all are not getting used it means its idle | 21:24 |
aditya | and since its a headless server there is no keyboard or mouse attached to the server | 21:24 |
aditya | so basically it would be like no http request or any no ssh session active would mean its idle | 21:25 |
OerHeks | those 2 settings work, only when there is NO opened user session. | 21:25 |
blackflow | you'll have to script something manually that monitors and detects 10+ minutes passed since last http request or session and then triggers sleep mode. | 21:25 |
blackflow | OerHeks: I thought it was the other way around, logind really being effective for (login) user sessions | 21:26 |
blackflow | I mean, the sessions need to report "idle" and that's all about local user interactivity. | 21:26 |
aditya | Ok so my settings in logind would only work if no user is logged in to the system | 21:27 |
OerHeks | i think you need to tweak plex to hibernate | 21:29 |
aditya | and then I have to write a bash script to check if there is no requests for plex or deluge and also check if there is no file server sessions | 21:29 |
OerHeks | DNLA service enabled? | 21:30 |
neyder | Aditya why in this world you would like to suspend a headless media server? Just wanna know | 22:35 |
neyder | Oh Aditya is gone | 22:36 |
neyder | That will replace the whale in my nightmares | 22:37 |
neyder | blackflow yeah, I completely forgotten netplan implementation, so edited /etc/network/interfaces and all campus' PC went off network, I take all day to get remote control again, one by one | 22:40 |
* neyder What a happy Saturday | 22:41 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!