Comment on can you boot a server if someone tries to connect
sugar_in_your_tea@sh.itjust.works 2 days agoI assume this works like the reverse of socket activation? If so, that’s pretty rad!
That said, that doesn’t really solve OP’s problem, and I’m not exactly sure what it’s solving for you. Jellyfin doesn’t really use any resources when idle, so it’s not going to save on power or anything like that.
That said, you could probably create an interesting service like this. Basically, if the last interesting service shuts down, you shut the whole machine down, and then use WoL to start it back up when someone wants it. Tune it a bit to reduce how often it reboots (i.e. extend life of your disks) and reduce boot times (i.e. don’t mount the RAID until it’s needed), and it could be really cool!
Mubelotix@jlai.lu 1 day ago
Exactly. It’s like socket activation but plugged into nginx. It might or might not fit OP’s use case, as when you have many small services like jellyfin, ram usage starts adding up. Adding automatic shutdown is a great idea
sugar_in_your_tea@sh.itjust.works 1 day ago
I can see that, especially if running on limited hardware. My server has way more RAM than it needs though (16GB), so saving 50MB here and there isn’t very important.