<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://charlesreid1.com/w/index.php?action=history&amp;feed=atom&amp;title=Ubuntu_Startup</id>
	<title>Ubuntu Startup - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://charlesreid1.com/w/index.php?action=history&amp;feed=atom&amp;title=Ubuntu_Startup"/>
	<link rel="alternate" type="text/html" href="https://charlesreid1.com/w/index.php?title=Ubuntu_Startup&amp;action=history"/>
	<updated>2026-06-19T23:21:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.12</generator>
	<entry>
		<id>https://charlesreid1.com/w/index.php?title=Ubuntu_Startup&amp;diff=6068&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;=Startup Services=  (Unfortunately, there is a seemingly endless number of ways to add a startup service to Ubuntu. One is using upstart, in &lt;code&gt;/etc/init&lt;/code&gt;, one is using ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://charlesreid1.com/w/index.php?title=Ubuntu_Startup&amp;diff=6068&amp;oldid=prev"/>
		<updated>2015-03-16T00:19:49Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=Startup Services=  (Unfortunately, there is a seemingly endless number of ways to add a startup service to Ubuntu. One is using upstart, in &amp;lt;code&amp;gt;/etc/init&amp;lt;/code&amp;gt;, one is using ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Startup Services=&lt;br /&gt;
&lt;br /&gt;
(Unfortunately, there is a seemingly endless number of ways to add a startup service to Ubuntu. One is using upstart, in &amp;lt;code&amp;gt;/etc/init&amp;lt;/code&amp;gt;, one is using &amp;lt;code&amp;gt;/etc/rc.local&amp;lt;/code&amp;gt;, and the last uses LSB init scripts. The last method is recommended.)&lt;br /&gt;
&lt;br /&gt;
To add a program to the startup process of Ethane, follow this procedure:&lt;br /&gt;
&lt;br /&gt;
First, create a script in &amp;lt;code&amp;gt;/etc/init.d&amp;lt;/code&amp;gt; with the name of your service (e.g., servicename):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo touch /etc/init.d/servicename&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, edit the servicename script so it contains a header (following this format: http://wiki.debian.org/LSBInitScripts) along with any commands that need to be run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### BEGIN INIT INFO&lt;br /&gt;
# Provides:          scriptname&lt;br /&gt;
# Required-Start:    $remote_fs $syslog&lt;br /&gt;
# Required-Stop:     $remote_fs $syslog&lt;br /&gt;
# Default-Start:     2 3 4 5&lt;br /&gt;
# Default-Stop:      0 1 6&lt;br /&gt;
# Short-Description: Start daemon at boot time&lt;br /&gt;
# Description:       Enable service provided by daemon.&lt;br /&gt;
### END INIT INFO&lt;br /&gt;
&lt;br /&gt;
put_your_commands_here&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Last, add the servicename to the boot sequence:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo update-rc.d servicename defaults&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see an output like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 Adding system startup for /etc/init.d/svnserve ...&lt;br /&gt;
   /etc/rc0.d/K20svnserve -&amp;gt; ../init.d/svnserve&lt;br /&gt;
   /etc/rc1.d/K20svnserve -&amp;gt; ../init.d/svnserve&lt;br /&gt;
   /etc/rc6.d/K20svnserve -&amp;gt; ../init.d/svnserve&lt;br /&gt;
   /etc/rc2.d/S20svnserve -&amp;gt; ../init.d/svnserve&lt;br /&gt;
   /etc/rc3.d/S20svnserve -&amp;gt; ../init.d/svnserve&lt;br /&gt;
   /etc/rc4.d/S20svnserve -&amp;gt; ../init.d/svnserve&lt;br /&gt;
   /etc/rc5.d/S20svnserve -&amp;gt; ../init.d/svnserve&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Ubuntu]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>