[{"data":1,"prerenderedAt":479,"buildId":480},["ShallowReactive",2],{"docs:\u002Fguide\u002Ftimer":3},{"page":4,"section":16,"document":17,"credits":10,"prev":471,"next":475},{"id":5,"path":6,"file":7,"title":8,"sourceTitle":8,"description":9,"tagline":9,"eyebrow":10,"credits":10,"keywords":11,"icon":12,"layout":13,"sidebar":14,"toc":14,"kind":10,"group":10,"navigation":14,"order":15},"timer","\u002Fguide\u002Ftimer","guide\u002Ftimer.md","Timer","Sync on a schedule from the operating system, for servers and other machines where no Claude Code or Codex session starts a sync.",null,[],"i-lucide-timer","article",true,7,"guide",{"nodes":18,"toc":466},[19,34,78,88,162,176,192,208,216,222,272,329,342,348,396,410,416,419,440,454],[20,21,22,23,27,28,33],"p",{},"The timer runs ",[24,25,26],"code",{},"fleetrc sync"," on a schedule, with no agent involved. Use it on a machine where no agent runs, such as a server. Everywhere else, ",[29,30,32],"a",{"href":31},"\u002Fguide\u002Fhooks-and-mcp#session-hooks","session hooks"," start the syncs.",[35,36,40],"pre",{"language":37,"frame":38,"class":39,"wrap":14},"sh","terminal","shiki shiki-themes github-light-default github-dark-default dark:github-dark-default",[24,41,43,59,60,59,69],{"class":42},"language-sh",[44,45,48,52,56],"span",{"class":46,"style":47},"line","display: inline",[44,49,51],{"style":50},"color:#953800;--shiki-dark:#FFA657","fleetrc",[44,53,55],{"style":54},"color:#0A3069;--shiki-dark:#A5D6FF"," timer",[44,57,58],{"style":54}," install","\n",[44,61,62,64,66],{"class":46,"style":47},[44,63,51],{"style":50},[44,65,55],{"style":54},[44,67,68],{"style":54}," status",[44,70,71,73,75],{"class":46,"style":47},[44,72,51],{"style":50},[44,74,55],{"style":54},[44,76,77],{"style":54}," remove",[20,79,80,83,84,87],{},[24,81,82],{},"init --timer"," installs it with the rest of the setup, and ",[24,85,86],{},"fleet init --timer"," does the same on each host.",[89,90,91,107],"table",{},[92,93,94],"thead",{},[95,96,97,101,104],"tr",{},[98,99,100],"th",{},"Command",[98,102,103],{},"What it does",[98,105,106],{},"Exit code",[108,109,110,131,148],"tbody",{},[95,111,112,118,121],{},[113,114,115],"td",{},[24,116,117],{},"timer install",[113,119,120],{},"Installs the timer, or updates it.",[113,122,123,126,127,130],{},[24,124,125],{},"0",", or ",[24,128,129],{},"1"," when it cannot install",[95,132,133,138,141],{},[113,134,135],{},[24,136,137],{},"timer status",[113,139,140],{},"Shows whether the OS has it, its last and next run, and its log.",[113,142,143,145,146],{},[24,144,125],{}," when installed, else ",[24,147,129],{},[95,149,150,155,158],{},[113,151,152],{},[24,153,154],{},"timer remove",[113,156,157],{},"Stops the timer and deletes its files.",[113,159,160],{},[24,161,125],{},[20,163,164,167,168,171,172,175],{},[24,165,166],{},"install"," and ",[24,169,170],{},"remove"," take ",[24,173,174],{},"--dry-run",":",[35,177,178],{"language":37,"frame":38,"class":39,"wrap":14},[24,179,180],{"class":42},[44,181,182,184,186,188],{"class":46,"style":47},[44,183,51],{"style":50},[44,185,55],{"style":54},[44,187,58],{"style":54},[44,189,191],{"style":190},"color:#0550AE;--shiki-dark:#79C0FF"," --dry-run",[35,193,195],{"language":194,"class":39,"wrap":14},"txt",[24,196,198,59,203],{"class":197},"language-txt",[44,199,200],{"class":46,"style":47},[44,201,202],{},"timer fleetrc-sync: `\u002Fusr\u002Fbin\u002Fnode \u002Fhome\u002Fme\u002F.local\u002Fstate\u002Ffleetrc\u002Fapp\u002Fcli.mjs sync` on \"*\u002F30 * * * *\" (the machine's time zone, now Europe\u002FMadrid)",[44,204,205],{"class":46,"style":47},[44,206,207],{},"would install a systemd user timer",[209,210,215],"h2",{"id":211,"anchor":212},"schedule",{"label":213,"icon":214},"Section titled \"Schedule\"","#","Schedule",[20,217,218,219,221],{},"The manifest's ",[24,220,5],{}," field sets the schedule. Both keys are optional.",[35,223,226],{"language":224,"filename":225,"class":39,"wrap":14},"json",".fleetrc\u002Fmanifest.json",[24,227,229,59,235,59,267],{"class":228},"language-json",[44,230,231],{"class":46,"style":47},[44,232,234],{"style":233},"color:#1F2328;--shiki-dark:#E6EDF3","{",[44,236,237,241,244,247,250,253,256,259,261,264],{"class":46,"style":47},[44,238,240],{"style":239},"color:#116329;--shiki-dark:#7EE787","  \"timer\"",[44,242,243],{"style":233},": { ",[44,245,246],{"style":239},"\"cron\"",[44,248,249],{"style":233},": ",[44,251,252],{"style":54},"\"0 *\u002F2 * * *\"",[44,254,255],{"style":233},", ",[44,257,258],{"style":239},"\"timeZone\"",[44,260,249],{"style":233},[44,262,263],{"style":54},"\"Europe\u002FMadrid\"",[44,265,266],{"style":233}," }",[44,268,269],{"class":46,"style":47},[44,270,271],{"style":233},"}",[89,273,274,287],{},[92,275,276],{},[95,277,278,281,284],{},[98,279,280],{},"Key",[98,282,283],{},"Default",[98,285,286],{},"Meaning",[108,288,289,304],{},[95,290,291,296,301],{},[113,292,293],{},[24,294,295],{},"cron",[113,297,298],{},[24,299,300],{},"*\u002F30 * * * *",[113,302,303],{},"Five fields: minute, hour, day of month, month, day of week.",[95,305,306,311,316],{},[113,307,308],{},[24,309,310],{},"timeZone",[113,312,313],{},[24,314,315],{},"local",[113,317,318,319,322,323,126,326,328],{},"An IANA name such as ",[24,320,321],{},"Europe\u002FMadrid"," or ",[24,324,325],{},"UTC",[24,327,315],{}," for the machine's zone.",[20,330,331,332,334,335,341],{},"fleetrc refuses a cron or zone it cannot read when it loads the manifest. After you change either, run ",[24,333,117],{}," again. ",[29,336,338],{"href":337},"\u002Freference\u002Fdoctor",[24,339,340],{},"doctor"," warns until you do.",[209,343,347],{"id":344,"anchor":345},"where-it-runs",{"label":346,"icon":214},"Section titled \"Where it runs\"","Where it runs",[89,349,350,360],{},[92,351,352],{},[95,353,354,357],{},[98,355,356],{},"System",[98,358,359],{},"Scheduler",[108,361,362,377,388],{},[95,363,364,367],{},[113,365,366],{},"Linux",[113,368,369,370,373,374],{},"A systemd user timer, ",[24,371,372],{},"fleetrc-sync.timer",", in ",[24,375,376],{},"~\u002F.config\u002Fsystemd\u002Fuser",[95,378,379,382],{},[113,380,381],{},"macOS",[113,383,384,385],{},"A launchd agent, ",[24,386,387],{},"~\u002FLibrary\u002FLaunchAgents\u002Ffleetrc-sync.plist",[95,389,390,393],{},[113,391,392],{},"Windows",[113,394,395],{},"A Task Scheduler task",[20,397,398,399,401,402,405,406,409],{},"launchd and Task Scheduler run in the machine's time zone, so a ",[24,400,310],{}," that gives other times there fails to install. Each run appends to ",[24,403,404],{},"fleetrc-sync.log"," in the state folder's ",[24,407,408],{},"logs"," directory.",[209,411,415],{"id":412,"anchor":413},"linger-on-linux",{"label":414,"icon":214},"Section titled \"Linger on Linux\"","Linger on Linux",[20,417,418],{},"A systemd user timer stops when you log out unless lingering is on. On a server, turn it on once:",[35,420,421],{"language":37,"frame":38,"class":39,"wrap":14},[24,422,423],{"class":42},[44,424,425,428,431,434,437],{"class":46,"style":47},[44,426,427],{"style":50},"loginctl",[44,429,430],{"style":54}," enable-linger",[44,432,433],{"style":54}," \"",[44,435,436],{"style":233},"$USER",[44,438,439],{"style":54},"\"",[20,441,442,167,444,446,447,449,450,453],{},[24,443,117],{},[24,445,137],{}," say when linger is off, and ",[24,448,340],{}," reports it as ",[24,451,452],{},"systemd linger",".",[20,455,456,457,459,460,462,463,465],{},"A container or WSL1 has no systemd user manager and cannot have a timer. ",[24,458,117],{}," exits ",[24,461,129],{}," and prints a crontab line that runs ",[24,464,26],{}," instead.",[467,469,470],{"id":211,"depth":468,"text":215},2,{"id":344,"depth":468,"text":347},{"id":412,"depth":468,"text":415},{"path":472,"title":473,"description":474},"\u002Fguide\u002Ffleet","Fleet","Set up and sync other machines from one controller over SSH or Tailscale, check what each last ran, and run a command on all of them.",{"path":476,"title":477,"description":478},"\u002Fguide\u002Fagents","Agents","See which agents get skills, files, MCP servers and hooks, choose them with the agents field, and set up with an agent.",1796387377708,"d132e1fa-7946-4d59-bf8e-899a35cb66e2"]