<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Systemctl on Ruotian&#39;s I/O</title>
    <link>https://ruotian.io/tags/systemctl/</link>
    <description>Recent content in Systemctl on Ruotian&#39;s I/O</description>
    <image>
      <title>Ruotian&#39;s I/O</title>
      <url>https://ruotian.io/apple-touch-icon.png</url>
      <link>https://ruotian.io/apple-touch-icon.png</link>
    </image>
    <generator>Hugo</generator>
    <language>zh</language>
    <lastBuildDate>Fri, 04 Mar 2022 18:12:45 +0800</lastBuildDate>
    <atom:link href="https://ruotian.io/tags/systemctl/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>创建一个 Service/Systemctl 服务</title>
      <link>https://ruotian.io/2022/03/create-a-service/</link>
      <pubDate>Fri, 04 Mar 2022 18:12:45 +0800</pubDate>
      <guid>https://ruotian.io/2022/03/create-a-service/</guid>
      <description>&lt;ol&gt;
&lt;li&gt;写入&lt;code&gt;{taskname}.service&lt;/code&gt;文件到&lt;code&gt;/etc/systemd/system/&lt;/code&gt;文件夹。&lt;/li&gt;
&lt;li&gt;&lt;code&gt;sudo systemctl daemon-reload&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;sudo systemctl enable {taskname}.service&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;sudo systemctl start {taskname}.service&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;systemctl status {taskname}.service&lt;/code&gt;查看状态。&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;code&gt;{taskname}.service&lt;/code&gt; 例子:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
