Changes

Jump to navigation Jump to search
m
Line 612: Line 612:  
  echo service >type
 
  echo service >type
 
  echo enabled >status
 
  echo enabled >status
   
For testing, you will also need to run '''initialize-default-databases''' to load these new defaults.
 
For testing, you will also need to run '''initialize-default-databases''' to load these new defaults.
   −
# Your RPM can also start the service in the <var class="LITERAL">%post</var> section, but you need to be very careful to only do this in run-level 7. The same <var class="LITERAL">%post</var> section is run during installation from CDROM, and we do not want services started during that installation. They will most likely fail and may cause the CD install to fail.
+
Your RPM can also start the service in the <var class="LITERAL">%post</var> section, but you need to be very careful to only do this in run-level 7. The same <var class="LITERAL">%post</var> section is run during installation from CDROM, and we do not want services started during that installation. They will most likely fail and may cause the CD install to fail.
    
All of these steps result in the server starting automatically upon installation of the RPM, and whenever the server is rebooted.
 
All of these steps result in the server starting automatically upon installation of the RPM, and whenever the server is rebooted.
Line 627: Line 626:     
The <tt class="FILENAME">/service/myserver</tt> symbolic link is owned by the RPM, and when it is removed, '''runsvdir''' will soon notice and kill the '''runsv''' supervision process. The final '''true''' command ensures that a failure from the other commands won't cause the removal of the RPM to fail. Note that these steps cannot be in the post-uninstallation script, since some of the required files may have been removed by that time.
 
The <tt class="FILENAME">/service/myserver</tt> symbolic link is owned by the RPM, and when it is removed, '''runsvdir''' will soon notice and kill the '''runsv''' supervision process. The final '''true''' command ensures that a failure from the other commands won't cause the removal of the RPM to fail. Note that these steps cannot be in the post-uninstallation script, since some of the required files may have been removed by that time.
  −
</div></div></div>
 

Navigation menu