The story of system.startup.startupScript

未关闭
#5 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
45/100
Issue 类型
文档
描述清晰度
需要澄清
活跃度
活跃
领域
documentation

调研方向

Start with the system.startup.startupScript entry point and compare its source with the twelve startup stages listed in the issue. The issue names no target documentation file, test, or required output, so clarify where the explanation should live and what format marks the work as complete.

由索引模型根据 Issue 内容生成。

描述

I asked Claude to summarize what system.startup.startupScript does. It's very good at understanding the whole of what a 309-line script written over many years by many people, does.

  1. Bails if it already ran. system.temp.Frontier existing is the "already started" flag; otherwise it creates that table, stamps the startup time, and sets startingUp = true.

  2. Records where the root file is -- Frontier.pathToRoot and Frontier.pathstring.

  3. Starts the scheduler and fixes the clock -- scheduler.init, scheduler2.init, then makes sure the everyMinute, hourly, and overnight tasks are set in the future (overnight keeps its hour, e.g. 3AM).

  4. Opens the About window (if user.prefs.openAboutWindow says so) and starts the log (log.startup).

  5. Runs the external startup commands file -- opmlStartupCommands.txt next to the app, if present -- then calls Frontier.enableAgents.

  6. Opens guest databases -- everything in user.databases with openOnStartup true, running each one's #startup script if its runStartupScript is true.

  7. The init parade -- html.init, webserver.init, betty.init, people.init, custody.init, soap.init, export.init, and mainResponder.startup on the OPML Editor.

  8. First-run business -- on user.prefs.firstRootRun: license agreement, the user-info dialog, root updates.

  9. Builds the menubar, initializes proxy prefs, installs Tools (in a try, so a Tools failure can't kill the startup), and finds the default browser on Windows.

  10. Calls system.callbacks.startup -- the user's own startup scripts.

  11. Starts the daemons -- inetd.start, last on purpose so servers come up after everything else is ready.

  12. Clears startingUp -- the script's own comment: "signal to all who care, let the hits begin!"

主要语言
没有语言数据
星标
0
派生
0
PR 合并指标
30 天内没有已合并 PR

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

scripting/helloFrontier 的其他 Issue

查看 scripting/helloFrontier 的全部 Issue

相似的 Issue

更多 Documentation Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。