Re:Uber Eats Canada Ran Production in a MacBook Air
by Altimor on Wednesday July 12, 2023 @08:18PM
(#36703479)
OP — I’m not that privy to the details of what in the world was running on that MacBook Air, but I’m 100% sure it wasn’t “the production servers for Uber eats Canada.” It was some kind of hack doing some kind of thing on a recurring basis to make sure the service continued. These things were often hacked together by engineers, and sometimes ops people, in the middle of outages, as a stop gap.
[ Parent
| on HN ]
Re:Uber Eats Canada Ran Production in a MacBook Air
by JohnMakin on Wednesday July 12, 2023 @09:04PM
(#36703843)
yep definitely pulled this move before. Probably on a laptop because it is the only thing that has permissions to do whatever insanely janky thing it’s doing.
Re:Uber Eats Canada Ran Production in a MacBook Air
by justinclift on Thursday July 13, 2023 @12:04AM
(#36704881)
Sounds like something probably in the System keychain, that's not getting unlocked when the user is logged out.
Incidentally, the command to unlock the system keychain (eg in a cronjob) is:
systemkeychain -vt
That doesn't seem to be widely known, and is very useful for things like build jobs. ;)
Re:Uber Eats Canada Ran Production in a MacBook Air
by woleium on Wednesday July 12, 2023 @11:13PM
(#36704606)
Not that I condone this sort of thing, but folks who do need to do it should know about caffeine [0] which allows a Mac to disable it's lid switch and keep running with the lid closed.
Re:Uber Eats Canada Ran Production in a MacBook Air
by Acen on Wednesday July 12, 2023 @11:28PM
(#36704691)
Side note, Caffeine[1][2] does not disable it's lid switch, but instead disables the automatic sleep behaviour while enabled.
[1] Author link (includes link to source): https://www.intelliscapesolutions.com/apps/caffeine
[2] Original author link (stopped updating before OSX Mojave): https://www.lightheadsw.com/caffeine/
Re:Uber Eats Canada Ran Production in a MacBook Air
by raihansaputra on Wednesday July 12, 2023 @11:35PM
(#36704730)
i switched from caffeine to amphetamine due to compat issues and amphetamine does have a mode to disable the lid switch
Re:Uber Eats Canada Ran Production in a MacBook Air
by fingerlocks on Thursday July 13, 2023 @01:49AM
(#36705449)
Or you can use the built-in and more powerful commands: pmset and caffeinate.
E.g. you can prevent sleeping until another process exists, or initiate sleep or shutdown.