r/github • • Nov 28 '21

Why Github was down

Post image
865 Upvotes

24 comments sorted by

View all comments

45

u/milanistadoc Nov 28 '21

Just write the command to ignore the closed lid! WTF. It's the first command that I searched and included in mine.

8

u/[deleted] Nov 28 '21

Is this a command the prevents back ground processes from being being paused? Could you share the command?

16

u/[deleted] Nov 28 '21

In /etc/systemd/logind look for something like HandleLidSwitch=..... and set it to ignore and reloaf systemd.

7

u/Successful-Emoji Nov 28 '21

But note that the laptop is a mac.

6

u/[deleted] Nov 29 '21 edited Nov 29 '21

Mac is a Unix system. It can surely do this. but it doesn't use systemd

6

u/wrkzk Nov 29 '21

Mac does not use systemd.

3

u/[deleted] Nov 29 '21

Ah! I didn't know this. Thanks

3

u/wrkzk Nov 29 '21

No problem! Systemd is the main init system for Linux these days, while Macos is more similar to the BSDs, and uses its own init system.

2

u/ChosenMate Nov 29 '21

bruh

1

u/[deleted] Nov 29 '21

my bad :( recently came to Mac and didn't realize it doesn't use systemd

1

u/new_pribor Jun 08 '25

Just because it’s a mac doesn’t mean that’s it’s running MacOS

4

u/[deleted] Nov 29 '21

On a Mac you can either use caffeinate in the terminal or the ever popular Amphetamine - the Mac app, not the drug :)

3

u/[deleted] Nov 29 '21

Very cool! Thanks for sharing

1

u/aaronfranke Dec 31 '21

Does this work on ARM-based Macs?

1

u/[deleted] Dec 31 '21

both do!