![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 . |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
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> |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
||||
|
||||
|
legacy first, then when the dependencies have been met for the particular milestone and service in question.
|
||||
| Google The UNIX and Linux Forums |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|