/srv/irclogs.ubuntu.com/2019/03/23/#ubuntu-server.txt

=== Remy^ is now known as Coca|ne
=== sharek_ is now known as sharek
neyderHello, sobbing because of netplan on 18.0418:16
neyderRe configuring all machines one by one18:17
blackflowneyder: don't use it if you don't want to?18:17
blackflownetplan 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
adityahi how can I make my ubuntu-server to suspend automatically after being idle21:14
blackflowyou'll have to define "idle" first21:17
OerHeksand your solution to wake up again.. https://help.ubuntu.com/community/WakeOnLan21:18
adityablackflow: 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 automatically21:21
blackflowaditya: you'll have to define "idle" first21:21
blackflowlogind concept of "idle" is no user interaction21:22
blackflownot really a server role21:22
adityablackflow: where do I define "Idle"21:22
blackflowin 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
blackflowis it "no key pressed for 10 minutes", or "no mouse moved for 10 minutes" or "no http request for 10 minutes" or what21:23
adityawell I have plex, deluge and file server running so when all are not getting used it means its idle21:24
adityaand since its a headless server there is no keyboard or mouse attached to the server21:24
adityaso basically it would be like no http request or any no ssh session active would mean its idle21:25
OerHeksthose 2 settings work, only when there is NO opened user session.21:25
blackflowyou'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
blackflowOerHeks: I thought it was the other way around, logind really being effective for (login) user sessions21:26
blackflowI mean, the sessions need to report "idle" and that's all about local user interactivity.21:26
adityaOk so my settings in logind would only work if no user is logged in to the system21:27
OerHeksi think you need to tweak plex to hibernate21:29
adityaand 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 sessions21:29
OerHeksDNLA service enabled?21:30
neyderAditya why in this world you would like to suspend a headless media server? Just wanna know22:35
neyderOh Aditya is gone22:36
neyderThat will replace the whale in my nightmares22:37
neyderblackflow 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 one22:40
* neyder What a happy Saturday22:41

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!