<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Itgo (yangk)</title>
    <link>https://ruby-china.org/Itgo</link>
    <description/>
    <language>en-us</language>
    <item>
      <title>Ubuntu (16.04.10) 开机自启动脚步，/etc/rc.local 中命令不执行</title>
      <description>&lt;p&gt;/etc/rc.local 文件内容如下&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;#!/bin/sh -e&lt;/span&gt;
&lt;span class="c"&gt;#&lt;/span&gt;
&lt;span class="c"&gt;# rc.local&lt;/span&gt;
&lt;span class="c"&gt;#&lt;/span&gt;
&lt;span class="c"&gt;# This script is executed at the end of each multiuser runlevel.&lt;/span&gt;
&lt;span class="c"&gt;# Make sure that the script will "exit 0" on success or any other&lt;/span&gt;
&lt;span class="c"&gt;# value on error.&lt;/span&gt;
&lt;span class="c"&gt;#&lt;/span&gt;
&lt;span class="c"&gt;# In order to enable or disable this script just change the execution&lt;/span&gt;
&lt;span class="c"&gt;# bits.&lt;/span&gt;
&lt;span class="c"&gt;#&lt;/span&gt;
&lt;span class="c"&gt;# By default this script does nothing.&lt;/span&gt;

&lt;span class="c"&gt;#sleep 3&lt;/span&gt;
&lt;span class="c"&gt;#source /etc/profile&lt;/span&gt;
&lt;span class="nb"&gt;touch&lt;/span&gt; /home/demo/yyyyy.log

&lt;span class="nb"&gt;exit &lt;/span&gt;0
&lt;/code&gt;&lt;/pre&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;
&lt;/code&gt;&lt;/pre&gt;</description>
      <author>Itgo</author>
      <pubDate>Thu, 06 Jun 2019 15:20:04 +0800</pubDate>
      <link>https://ruby-china.org/topics/38609</link>
      <guid>https://ruby-china.org/topics/38609</guid>
    </item>
  </channel>
</rss>
