TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Beginning, a work-in-progress init system

22 点作者 Somasis超过 9 年前

3 条评论

Somasis超过 9 年前
Hi HN, I've been working on this for a while and I was looking for some feedback on it. I've been using it on my laptop, servers, etc. without issues for a few months.
评论 #10192285 未加载
JdeBP超过 9 年前
<p><pre><code> #!&#x2F;bin&#x2F;bash #!&#x2F;bin&#x2F;bash #!&#x2F;bin&#x2F;bash </code></pre> One of the major improvements to System 5 rc on Linux in the past couple of decades came not from adjusting configuration mechanisms (e.g. r2d2, file-rc) or helper script function libraries. It came from the simple realization that the Bourne Again shell was a quite heavyweight choice for running a lot of non-interactive scripts.<p>* <a href="https:&#x2F;&#x2F;wiki.ubuntu.com&#x2F;DashAsBinSh" rel="nofollow">https:&#x2F;&#x2F;wiki.ubuntu.com&#x2F;DashAsBinSh</a><p>* <a href="https:&#x2F;&#x2F;wiki.debian.org&#x2F;BootProcessSpeedup#Using_a_faster_system_shell" rel="nofollow">https:&#x2F;&#x2F;wiki.debian.org&#x2F;BootProcessSpeedup#Using_a_faster_sy...</a><p>* <a href="http:&#x2F;&#x2F;initscripts-ng.alioth.debian.org&#x2F;soc2006-bootsystem&#x2F;bootcharts.html" rel="nofollow">http:&#x2F;&#x2F;initscripts-ng.alioth.debian.org&#x2F;soc2006-bootsystem&#x2F;b...</a>
JdeBP超过 9 年前
<p><pre><code> HWCLOCK_TZ=$(readlink &#x2F;etc&#x2F;localtime | cut -d&#x2F; -f5-) </code></pre> One of the improvements to BSD &#x2F;etc&#x2F;rc.conf{,.local} pioneered by OpenBSD 5.6 is that they are no longer shell scripts, but are simple lists of name=value pairs, that can thus be parsed, used, and maintained by things other than just shell script interpreters.<p>OpenBSD also gained an rcctl command, where one could run (say) &quot;rcctl enable salt_master&quot; and it would adjust the rc.conf files to enable the salt_master service. nosh has a shim for it.<p>* <a href="http:&#x2F;&#x2F;www.openbsd.org&#x2F;faq&#x2F;upgrade56.html#OtherChanges" rel="nofollow">http:&#x2F;&#x2F;www.openbsd.org&#x2F;faq&#x2F;upgrade56.html#OtherChanges</a><p>* <a href="http:&#x2F;&#x2F;undeadly.org&#x2F;cgi?action=article&amp;sid=20140820090351" rel="nofollow">http:&#x2F;&#x2F;undeadly.org&#x2F;cgi?action=article&amp;sid=20140820090351</a>