Sponsored Content
Full Discussion: solaris 10: add new svc
Operating Systems Solaris solaris 10: add new svc Post 302096471 by Tornado on Thursday 16th of November 2006 12:45:17 AM
Old 11-16-2006
Yes you have to create the xml file yourself..

- Create your shell start stop script and save it in /usr/local/svc/method/myservice
- chmod 755 /usr/local/svc/method/myservice
- Create your xml file and save it in /var/svc/manifest/site/myservice.xml
- Incorporate the script into the SMF using svccfg utility
Code:
svccfg import /var/svc/manifest/site/myservice.xml

note:
replace myservice with the name of the service you are adding.

Last edited by Tornado; 11-16-2006 at 03:19 AM..
This User Gave Thanks to For This Post:
Tornado
 

10 More Discussions You Might Find Interesting

1. Solaris

how do you login as sms-svc on a system controller

hi, i have got a SUN F15K DOMAIN TAKING HARDWARE CONFIGURATION DUMP. DUMP FILE: -D/VA message i wnat to logon as sms-svc on to the controller to check what's happening can you please guide me how do i login as sms-svc on the controller and check thank you (1 Reply)
Discussion started by: vinix
1 Replies

2. UNIX for Dummies Questions & Answers

Sol_9 => Sol_10/08 Upgrade svc startup issue.

Dear all, Recently I did an upgrade from Solaris 9 to Solaris 10 on a V440 System, after the initial reboot after the auto-reboot from the OS upgrade, the service: svc:/system/webconsole:console transitions into maintenance and cannot be manually brought online. Below are a list of things I... (0 Replies)
Discussion started by: ShawnLua
0 Replies

3. Filesystems, Disks and Memory

SDD for SVC on HP-UX and LINUX

Hello Unix Admins: Has any one in this distribution list implemented SVC (SAN Volume Contoller - A solution from IBM) in your environment? If you have, do you have any do's / don'ts? Anything which you like sharing would be really appreciated. For example, my inputs: I tried implementing... (1 Reply)
Discussion started by: kdossjojo
1 Replies

4. Solaris

svc Errors on OS startup

I'm having these weird errors. svc.configd: Fatal error: Backend copy failed: fails to read from /etc/svc/repository.db at offset 106496: Bad file number svc.configd: Fatal error: unable to create "boot" backup of "/etc/svc/repository.db" Mar 10 13:04:23 svc.startd:... (5 Replies)
Discussion started by: adelsin
5 Replies

5. Solaris

svc:/system/filesystem/local is always in maintenance status

Hello Friends, I need to change network filesystem status as online but it always seems in maintenance mode, I appreciate your any suggestion to change its state as online. shell>svcadm enable svc:/system/filesystem/local shell>svcs -l svc:/system/filesystem/local fmri ... (4 Replies)
Discussion started by: EAGL€
4 Replies

6. Solaris

svc:/network/physical:default: Method "/lib/svc/method/net-physical" failed with exit status 96. [ n

After a memory upgrade all network interfaces are misconfigued. How do i resolve this issue. Below are some out puts.thanks. ifconfig: plumb: SIOCLIFADDIF: eg000g0:2: no such interface # ifconfig eg1000g0:2 plumb ifconfig: plumb: SIOCLIFADDIF: eg1000g0:2: no such interface # ifconfig... (2 Replies)
Discussion started by: andersonedouard
2 Replies

7. Solaris

Svc messages flooding the system logs every second

Hi all I have a newly installed Oracle X2-4 server running Solaris 10 x86 with the latest patches. I have one non-global zone configured running an Oracle DB instance. After configuring IPMP failover between two NICs on the server and rebooting I am seeing the /var/adm/messages being flooded... (7 Replies)
Discussion started by: notreallyhere
7 Replies

8. Solaris

Svc:/network/http:apache2 error

Dear All, http:apache2 service on my node is continuously in maintenance mode. I have tried to enable and disable the service but nothing works. root@ops # svcs -a | grep apache2 maintenance 15:46:37 svc:/network/http:apache2 When I reboot the system, I get the following error: ... (1 Reply)
Discussion started by: Junaid Subhani
1 Replies

9. Solaris

Solaris ftp connects out svc disabled.

Hi, Running ftp online 2:53:02 svc:/network/ftp:default If I disable ftp disabled 2:54:00 svc:/network/ftp:default I can still SEND ftp files out. I cannot connect to this server via FTP, but why can I still connect to other ftp servers and send files? Cheers. (5 Replies)
Discussion started by: RedWizard75
5 Replies

10. AIX

Change the ID of a SVC Node

Hi Folks, I'm currently in a position where I am building the seed equipment for a Data Centre Migration, I'm familiar with some of the equipment - all of which I've listed below. SAN Storage - EMC VNX5800 SAN Switches - Brocade DCX 8510-4 SAN Management - IBM SVC 2145-DH8 four node cluster... (2 Replies)
Discussion started by: gull04
2 Replies
smf_bootstrap(5)					Standards, Environments, and Macros					  smf_bootstrap(5)

NAME
smf_bootstrap - service management facility boot, packaging, and compatibility behavior DESCRIPTION
The service management facility defines a series of conventions for importing the configuration contained within a service manifest or pro- file into a repository. Manifest loading at boot At system start, svc.startd(1M) run in default mode begins processing the manifests located in /var/svc/manifest and importing new or changed manifests into the repositorty. The decision to import a service manifest is based on the existence of a property group in the svc:/smf/manifest service with the following characteristics: o The name of the property group is the name of the imported manifest with non-alphanumeric characters replaced by underscore (_) char- acters. o The properties of the property group are set based on the manifest contents. The manifest is not reimported in the event that configuration changes are made to the repository by an administrator. Such configuration changes might include the deletion of one or more services or service instances contained within the manifest. The /var/svc/manifest/site directory is provided for site-specific customizations. The deletion of a property group by means of svccfg(1M) or libscf(3LIB) interfaces allows the manifest to be reimported on a subsequent system boot. Manifest handling during packaging operations Service manifests within packages are identified with the class manifest. Class action scripts that install and remove service manifests are included in the packaging subsystem. When pkgadd(1M) is invoked, the service manifest is imported. When pkgrm(1M) is invoked, instances in the manifest that are disabled are deleted. Any services in the manifest with no remaining instances are also deleted. Stability declarations Each service group and each property group delivered in a manifest should declare a stability level based on attributes(5) definitions. With knowledge of the stability level, an application developer can determine the likelihood that feature development based on the exis- tence or components of a service or object is likely to remain functional across a release boundary. In an smf(5) context, the stability value also identifies the expected scope of the changes to properties within the property group across a release boundary for the service, which can include patches for that service. The following two sections discuss this in more detail. Property overrides The service_bundle(4) document type definition includes an override attribute that is applicable to each property in a service manifest. If set to true, the attribute instructs svccfg(1M) and other manifest import tools to replace the current value of a property in the reposi- tory with the one from the manifest. If the override attribute is absent or present but set to false, the current value in the repository is preserved. Property groups declared as Stable do not contain override attributes on enclosed properties. Property groups declared as Evolving do so only to correct an erroneous setting. Property groups declared as Unstable can contain overrides on any property. The exception to this behavior is for the stability property itself, which can be modified to identify incipient change to the interface presented by the ser- vice. Property group deletion The service_bundle(4) document type definition includes a delete attribute, applicable to each property group in a service manifest. If set to true, the delete attribute instructs svccfg(1M) and other manifest import tools to delete this property group from the repository. If the delete attribute is absent or present but set to false, the property group in the repository is preserved. Property groups declared as Stable or Evolving are not deleted. Property groups declared as Unstable can be deleted across any release boundary. Profile application The first time the existence of each of the three service profiles listed below is detected, svc.startd(1M) automatically applies the pro- file. /var/svc/profile/generic.xml /var/svc/profile/platform.xml /var/svc/profile/site.xml The svc:/smf/manifest service is used in a similar fashion. Additional service profiles that characterize the activation of various groups of service instances might be present in /var/svc/profile. None of the /var/svc/profile profiles are automatically applied to the repository. A profile can be manually applied or re-applied using svcadm(1M). SEE ALSO
pkgadd(1M), pkgrm(1M), svcadm(1M), svccfg(1M), svc.startd(1M), libscf(3LIB), service_bundle(4), attributes(5), smf(5), smf_security(5) NOTES
The present version of smf(5) does not support multiple repositories. SunOS 5.10 27 Aug 2004 smf_bootstrap(5)
All times are GMT -4. The time now is 05:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy