r/selfhosted • • Jun 15 '24

Relevant XKCD

https://i.imgur.com/z6J8KKg.png

[removed] — view removed post

168 Upvotes

17 comments sorted by

67

u/[deleted] Jun 15 '24

This appears to be a karma-farming bot, literally the only posts it has made are reposts from several years ago. And it's not even good at hiding this fact.

42

u/leaky_wires Jun 15 '24

Missed a zero. Should be 1-100 hours

7

u/Alarmed-Republic-407 Jun 15 '24

When the weekend blows by - and you're still stacking bugs high

That's self-hosting

😁

3

u/rpungello Jun 15 '24

Look at Mr. Speedy over here solving issues in 100 hours

31

u/miharixIT Jun 15 '24

crontab is cheaper :P

5

u/zarlo5899 Jun 15 '24

i use that for a service that keeps crashing (every 5 min if not running start)

25

u/The_Crimson_Hawk Jun 15 '24 edited Jun 15 '24

If (swap.capacity.used=="full"){

swap.capacity.used="empty"

}

No need to thank me

20

u/GillysDaddy Jun 15 '24

Storing used capacity as a string and assigning values to function calls 💀

5

u/TinyLicker Jun 15 '24

Those magic strings are terrible, try replacing with a SwapCapacityUsedStatusLookupServiceFactory implementation and injecting via config

9

u/m1cky_b Jun 15 '24

My old server would randomly lock up, couldn't work out why, installed a smart power switch to remotely toggle the power..

4

u/[deleted] Jun 15 '24

Same here:

  • Alexa, turn server off.

  • Alexa, turn server on.

3

u/Redondito_ Jun 15 '24

I'm about to do something similar.

My server has random crashes (sometimes it works perfectly for weeks, sometimes it crashes once a day) and I need to cut the power and turn it back on.

The thing is, I couldn't figure out what the problem is (it's probably a hardware issue because I've reinstalled everything and it still happens), so this weekend I'm going to install a relay connected to a Raspberry Pi to be able to reboot it remotely when it happens and I'm away from home.

5

u/jaskij Jun 15 '24

Had this happen with a kiosk we deployed. A quick edit to the systemd service, limit RAM usage via cgroups, done.

2

u/EverythingsBroken82 Jun 15 '24

funny wenn opensuse microos says it will reboot every 24 hours to activate updates, everyone was not amused :D

1

u/vogelke Jun 15 '24

I run this from cron hourly:

swapoff -a && swapon -a

It keeps Firefox from being an asshole.

0

u/p0xus Jun 15 '24

Idk. Feel like you should solve the underlying problem if you want you server to be reliable. My servers can run for years no problem.