The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


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
cron job question dannyd Linux 5 03-03-2008 08:40 AM
cron question moe2266 Shell Programming and Scripting 4 11-18-2007 11:08 PM
question about cron hcclnoodles UNIX for Dummies Questions & Answers 1 12-08-2006 06:02 AM
CRON Question DenD AIX 2 01-17-2006 10:59 AM
cron question ted Shell Programming and Scripting 2 08-02-2004 01:13 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 02-18-2007
Registered User
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 401
Solaris 10 cron question

I have a script that needs to install a script the runs just before cron starts. Currently (for 9 and older), it simply finds the name of the cron script in /etc/rc?.d, decrements the number and creates a link.

For example, if cron starts with /etc/rc2.d/S75cron, the install script extracts the 75, decrements it by one and creates a symbolic link, S74script which points to /etc/init.d/script.

Under Solaris 10, it's using svcadm to start cron and I can't seem to find where that runs.

Pointers? I just inherited this box and am having fun (ha-ha) finding all the changes. Most aren't a big deal, I can find it via search if nothing else.

Thanks.

Carl
Reply With Quote
Forum Sponsor
  #2  
Old 02-19-2007
reborg's Avatar
Administrator
 

Join Date: Mar 2005
Location: Ireland
Posts: 3,644
Code:
-bash-3.00# svccfg
svc:> select svc:/system/cron
svc:/system/cron> listprop
usr                           dependency
usr/entities                  fmri     svc:/system/filesystem/local
usr/grouping                  astring  require_all
usr/restart_on                astring  none
usr/type                      astring  service
ns                            dependency
ns/entities                   fmri     svc:/milestone/name-services
ns/grouping                   astring  require_all
ns/restart_on                 astring  none
ns/type                       astring  service
general                       framework
general/action_authorization  astring  solaris.smf.manage.cron
general/entity_stability      astring  Unstable
general/single_instance       boolean  true
dependents                    framework
dependents/cron_multi-user    fmri     svc:/milestone/multi-user
startd                        framework
startd/ignore_error           astring  core,signal
start                         method
start/exec                    astring  /lib/svc/method/svc-cron
start/group                   astring  root
start/limit_privileges        astring  :default
start/privileges              astring  :default
start/project                 astring  :default
start/resource_pool           astring  :default
start/supp_groups             astring  :default
start/timeout_seconds         count    60
start/type                    astring  method
start/use_profile             boolean  false
start/user                    astring  root
start/working_directory       astring  :default
stop                          method
stop/exec                     astring  :kill
stop/timeout_seconds          count    60
stop/type                     astring  method
tm_common_name                template
tm_common_name/C              ustring  "clock daemon (cron)"
tm_man_cron                   template
tm_man_cron/manpath           astring  /usr/share/man
tm_man_cron/section           astring  1M
tm_man_cron/title             astring  cron
tm_man_crontab                template
tm_man_crontab/manpath        astring  /usr/share/man
tm_man_crontab/section        astring  1
tm_man_crontab/title          astring  crontab
svc:/system/cron>
Reply With Quote
  #3  
Old 02-19-2007
Registered User
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 401
Ok, that is something I found. What I was looking for was when during the boot process does cron start? Granted cron is part of the svcadm stuff but when does svcadm start all the processes?

Thanks.

Carl
Reply With Quote
  #4  
Old 02-19-2007
reborg's Avatar
Administrator
 

Join Date: Mar 2005
Location: Ireland
Posts: 3,644
legacy first, then when the dependencies have been met for the particular milestone and service in question.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 08:41 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0