git clone https://garage44.eu/jeroen/midas.git.. /units/midas-warm.service
# midas warm: bring free nodes up to the default branch when they are cold, # over their 24 GB ceiling, or stale (src/warm.rs), as `midas` with the hub's # operator key. Installed by `sudo midas hub setup`. [Unit] Description=midas warm (keep free build nodes warm at main) After=network-online.target midas-hub.service [Service] Type=oneshot User=midas Group=midas Environment=HOME=/srv/midas ExecStart=/usr/local/bin/midas hub warm # A cold warm of both nodes is over an hour. TimeoutStartSec=4h UMask=0002 NoNewPrivileges=yes ProtectSystem=strict ProtectHome=yes ReadWritePaths=/srv/midas PrivateTmp=yes PrivateDevices=yes ProtectKernelTunables=yes ProtectKernelModules=yes ProtectControlGroups=yes RestrictSUIDSGID=yes CapabilityBoundingSet= RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX MemoryMax=256M