We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72a901a commit 831f72eCopy full SHA for 831f72e
macos-seatbelt/common.jl
@@ -227,10 +227,7 @@ function generate_launchctl_script(io::IO, brg::BuildkiteRunnerGroup;
227
if ((ts_now - ts_boot > 24*60*60)); then
228
echo "Rebooting machine after 24 hours of uptime"
229
sudo -n /sbin/shutdown -r now
230
-
231
- # Give the system the time to shut down,
232
- # preventing a new job from getting picked up
233
- sleep 30
+ break
234
fi
235
""")
236
@@ -242,6 +239,9 @@ function generate_launchctl_script(io::IO, brg::BuildkiteRunnerGroup;
242
239
break
243
240
244
241
done
+
+ # Return success, which will result in the service _not_ restarting
+ exit 0
245
246
end
247
0 commit comments