Changes

Jump to navigation Jump to search
5 bytes added ,  22:12, 9 April 2014
Line 635: Line 635:     
===allow a service to start for a particular time===
 
===allow a service to start for a particular time===
If your package implements a server or daemon, you will probably want it to be started automatically when the system boots.
+
If your package implements a server or daemon, you will probably want it to be started automatically when the system boots. The SME Server boots in runlevel 7, so you can get an idea of the startup processes by listing the contents of /etc/rc.d/rc7.d.
   −
The SME Server boots in runlevel 7, so you can get an idea of the startup processes by listing the contents of /etc/rc.d/rc7.d.
+
These are similar to the init scripts you may be familiar with from other Linux systems, with one important difference. Instead of pointing to scripts within /etc/rc.d/init.d, all of those init entries are links to /etc/rc.d/init.d/e-smith-service. This is a wrapper which checks the configuration database to see if the service is supposed to be running and if so, starts the service from /etc/rc.d/init.d/whatever.
 
  −
These are similar to the init scripts you may be familiar with from other Linux systems, with one important difference. Instead of pointing to scripts within /etc/rc.d/init.d, all of those init entries are links to /etc/rc.d/init.d/e-smith-service.  
  −
This is a wrapper which checks the configuration database to see if the service is supposed to be running and if so, starts the service from /etc/rc.d/init.d/whatever.
      
So for example, you might have:
 
So for example, you might have:
Line 664: Line 661:  
we create a symlink to e-smith-service startup script with a name where: S tells SME to start XX are numbers
 
we create a symlink to e-smith-service startup script with a name where: S tells SME to start XX are numbers
   −
You can decide when to start the service '''myapplicationname''', but you should not start something that need the network before the network itself is up and running.
+
You can decide when to start the service '''myapplicationname''', but you should not start something that need the network before the network itself is up and running. Therefore you can see the content of /etc/rc7.d and see which scripts are needed to execute your new startup script
Therefore you can see the content of /etc/rc7.d and see which scripts are needed to execute your new startup script
+
 
 
  signal-event remoteaccess-update
 
  signal-event remoteaccess-update
  service myapplicationname start
+
  service '''myapplicationname''' start
 
====Creating or deleting a service====
 
====Creating or deleting a service====
  

Navigation menu