![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Disadvantage of background processes | unni.raj | UNIX for Dummies Questions & Answers | 3 | 08-04-2009 12:35 PM |
| Keep a certain number of background processes running | dgob123 | Shell Programming and Scripting | 7 | 03-24-2009 09:35 AM |
| Question about background processes | neimaD | Linux | 10 | 09-10-2008 11:21 AM |
| Running two processes in background | jacob_gs | Shell Programming and Scripting | 6 | 05-13-2002 12:40 PM |
| Background processes | korndog | UNIX for Advanced & Expert Users | 2 | 09-20-2001 10:56 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
About running processes in background
Hi,
I need to establish a procedure that will start an application in background each time my remote Solaris server is (re)started. This would be a kind of daemon. I am no sysadmin expert, so I am looking for pointers. How should I proceed? What are the main steps? Thanks, JVerstry |
|
|||||
|
you should probably read about "init scripts" (if you are < solaris 10) or about "SMF" (solaris 10 or newer). a good startpoint is:
Sun Microsystems Documentation and Sun Microsystems - BigAdmin System Administration Portal |
|
||||
|
Thanks.
The 'uname -r' command tells me that my Solaris version is 5.11. I have been doing some reading and it seems like I would have to put my script in the /etc/init.d/ directory or in a /etc/rc?.d directory (? = run level). Is this correct? If yes, in which directory should I put my script (and with which run level)? I have also read about a svcadm command available on Solaris 10 to enable services, but it does not exist in 5.11. Is there anything I should do to 'activate' my service/script in 5.11? Or does copying the script in the proper directory enough? Thanks, JVerstry |
|
||||
|
svcadm definitely exists with SunOS 5.11.
rc.d scripts are also still supported as an alternative. If you are unsure about where to put your script, use run level 3 with a late run, eg: /etc/rc3.d/S99myLocalService Don"t forget to set stop scripts too: /etc/rc0.d/K00myLocalService , /etc/rc2.d/K00myLocalService and /etc/rc3.d/K00myLocalService. |
|
||||
|
When I run svcadm, the command is not found. May be it has not been installed.
Just to make sure I understand you correctly: i) /etc/rc3.d/S99myLocalService -> S99 means start late? In other words, Solaris would start this process after S98xxx files for example? ii) You mention the creation of stop scripts. Do I have to create 3 scripts or is one in rc3.d enough? iii) The stop script should contain a command stopping my service correct? iv) If I use the /etc/rc?.d do I still need to activate my service with svcadm? Thanks, JVerstry |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|