Sponsored Content
Full Discussion: Chkconfig & SMF
Operating Systems Solaris Chkconfig & SMF Post 302384101 by zedex on Monday 4th of January 2010 02:50:47 AM
Old 01-04-2010
Chkconfig & SMF

Hi

I have been told to migrate linux init scripts to solaris 10. i am reading about the chkconfig & SMF ( I came to know that SMF is used in Sol 10 for service management ). The only thing i could not find out ( Because i dont have root access ) is how the links are created in rcX.d directory?

I will try to explain what i understood from different article i found on net

1) there are different run levels generally 0-6 & S/s
2) Default is run level 3
3) with chkconfig user can create links in /etc/rcX.d
4) these links are hard links to files in init.d
5) when server boots up ( assume in run level 3 ) it executes all the scripts whose name starts with "S" under /etc/rc3.d
6) changing that initial letter to something else will skip that test being executed at start

please correct me if what i understood is wrong.

so my question was just by specifying something like in script will create a link under rc3.d dir ?

Code:
#!/bin/sh
# chkconfig: 3 20 20 
# description: blah blah

or do i have to write a script which will create a link in rcX.d folder to this files ?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Standalone FTPD within SMF

Hello We are trying to run the WU_FTPD demon in standalone mode (-S argument) via an SMF service. Prior to SMF, this was achieved by simply commenting out the FTP line within the inetd.conf file. However, within SMF, I believe we need to carry out the following activities: i) Remove the FTP... (0 Replies)
Discussion started by: CowsUdders
0 Replies

2. Red Hat

attempting to install chkconfig 1.3.5

Hi there everyone, I'm using redhat 7.3 at the moment and am currently trying to install chkconfig-1.3.5-3.i386.rpm , but when I type this command: rpm -Uvh chkconfig-1.3.5-3.i386.rpm I get the following error: error: failed dependencies: chkconfig = 1.2.24 is needed by... (3 Replies)
Discussion started by: redhat_newb101
3 Replies

3. UNIX for Advanced & Expert Users

chkconfig utility in solaris 10

I want to use chkconfig utility to simplify service management on Solaris 10. However, I couldn't find this utility. I tried " man chkconfig", the system return as " No manual entry for chkconfig". So what does this mean and how to find this utility on solaris 10? Thanks for your help. Happy New... (8 Replies)
Discussion started by: duke0001
8 Replies

4. Solaris

smf repository not running

Hi All, I have a Solaris server which runs version 10 After installing the patch , i thought of doing a recongiuration reboot But it failed saying "smf repository not running" what could be the issue. Thanks J (4 Replies)
Discussion started by: jegaraman
4 Replies

5. Solaris

SMF service HELP

I would like to run command whenever system boot up, i.e "/opt/admin/script/closegen -c /opt/share/script/colsehg" How do I integrate above command in to SMF services. -sam (1 Reply)
Discussion started by: sam786
1 Replies

6. Solaris

Solaris 8 how do I enable and disable services? (equivalent of chkconfig on Linux)

I've successfully installed syslog-ng and chkconfig using the packages from the OpenCSW project, these packages install under /opt/csw. I now need to disable the default syslog daemon and enable the new service created by the OpenCSW package (/etc/init.d/cswsyslog_ng). Is there any good way to... (3 Replies)
Discussion started by: aussieos
3 Replies

7. Red Hat

chkconfig error

I'm just trying to disable some of un used services. when i try that I'm getting following error. This is just for one "gpm" service failed to make symlink /etc/rc3.d/K15gpm: Read-only file system failed to make symlink /etc/rc4.d/K15gpm: Read-only file system failed to make symlink... (1 Reply)
Discussion started by: s_linux
1 Replies

8. Solaris

SMF in Solaris 10

In SOlaris 9 for eg, inside the /etc/init.d/inetsvc file, you can set the tcp tracing by going to the last line and adding the following as :- inetd -s -t & In Solaris 10, I know we can use the svccfg to do it or with the inetadm command. When I use inetadm -m command to set the tcp tracing... (3 Replies)
Discussion started by: incredible
3 Replies

9. Infrastructure Monitoring

Using SMF to register & start a (Nagios) service

I'm trying to register & start a service using SMF on Solaris 10. It's nsca, part of the Nagios monitoring system. I've got nsca running fine as a detached process, and can manually create passive checks via send_nsca. But when I try to run nsca as a daemon, I need some advice. The nsca... (0 Replies)
Discussion started by: lyle
0 Replies

10. UNIX for Dummies Questions & Answers

How do i disable kudzu without using chkconfig

How do i disable kudzu without using chkconfig? /sbin/chkconfig --level 3 kudzu off Is there any other way of doing it . for example by modifying parameter of any file. Basically i want kudzu to be disabled during the first run of the machine after installation. I have full access to the... (2 Replies)
Discussion started by: pinga123
2 Replies
hald(1M)						  System Administration Commands						  hald(1M)

NAME
hald - daemon that supports hardware abstraction layer SYNOPSIS
/usr/lib/hal/hald [--daemon={yes | no}]] [--help] [--use-syslog] [--verbose={yes | no}] [--version] DESCRIPTION
The hald daemon supports the recognition of hardware changes for devices that conform to the Hardware Abstraction Layer (HAL) specifica- tion. The enabling and disabling of hald can be performed through the service management facility (SMF) (see smf(5)). hald is managed using the fault management resource identifier (FMRI) svc:/system/hal. Options can be specified as SMF properties. See EXAMPLES. OPTIONS
The following options are supported: --daemon Run as a daemon. --help Display usage information and exit. --use-syslog Display debug messages to syslog instead of stderr. Use this option to record debug messages if HAL runs as daemon. --verbose Display debug information. --version Display version information and exit. EXAMPLES
Example 1 Specifying a Property The following svccfg(1M) command specifies the --verbose option. example# svccfg svc:> select hal svc:/system/hal> listprop hal/* hal/verbose boolean false hal/use_syslog boolean false svc:/system/hal> setprop hal/verbose=true svc:/system/hal> exit FILES
/usr/lib/hal HAL-related files /etc/hal/fdi Device information files ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWhalr | +-----------------------------+-----------------------------+ |Interface Stability |Volatile | +-----------------------------+-----------------------------+ SEE ALSO
svccfg(1M), attributes(5), hal(5), smf(5) SunOS 5.11 2 Jul 2008 hald(1M)
All times are GMT -4. The time now is 05:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy