SMF/Manifest in Zones


 
Thread Tools Search this Thread
Operating Systems Solaris SMF/Manifest in Zones
# 1  
Old 11-04-2008
SMF/Manifest in Zones

Hi..

I have an application installed in Zones and I would like to have the application started on every system reboot and stop at every shutdown.

I created start/stop/restart script in /etc/init.d and placed S and K links in rc?d directories. This works fine.

but I want to use SMF for this application instead of using legacy method.

I get this error when I try to create the file in /lib/svc/method/...

cannot create ... Read-only file system

I understand above error is there because this is a zone and /lib mounted read only. I am wondering if it is possible to have an independent service controlled in a zone using SMF? May be like using a different place to store script ? I have an independent /usr/local for each zone..

Any ideas ?Smilie

Thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Web Development

Webpacker::Manifest::MissingEntryError in Pioneers#index Error on Rails

Good evening I need your help please, Im a newbie at web applications and i am taking a course and i was struggling the web server to get to work this is when the webeserver is up: ubuntu@ubuntu-N53SV:~/hello_WWW$ rails server => Booting Puma => Rails 6.0.0 application starting in development ... (3 Replies)
Discussion started by: alexcol
3 Replies

2. 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

3. Solaris

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? ... (6 Replies)
Discussion started by: zedex
6 Replies

4. 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

5. 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

6. Shell Programming and Scripting

Exporting CLASSPATH in manifest service file

Hi, I need the a help can please any one give me a suggestion for Exporting the CLASS PATH in service manifest file for Solaris 10 Here i have pasted the code <?xml version="1.0"?> <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> <!-- Copyright 2007 Sun... (4 Replies)
Discussion started by: Shreedhar Naik
4 Replies

7. Solaris

SMF - Adding instances to existing manifest

I have a default, sun supplied, apache2 install on solaris10. It's running fine, everything's great. I'm looking to add another instance, fairly happy with how to do that apart from one thing - the SMF manifest. Can i just edit the XML file sun supplied for the default apache2 and add in details... (2 Replies)
Discussion started by: craigp84
2 Replies

8. 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
Login or Register to Ask a Question
halt(1M)						  System Administration Commands						  halt(1M)

NAME
halt, poweroff - stop the processor SYNOPSIS
/usr/sbin/halt [-dlnqy] /usr/sbin/poweroff [-dlnqy] DESCRIPTION
The halt and poweroff utilities write any pending information to the disks and then stop the processor. The poweroff utility has the machine remove power, if possible. The halt and poweroff utilities normally log the system shutdown to the system log daemon, syslogd(1M), and place a shutdown record in the login accounting file /var/adm/wtmpx. These actions are inhibited if the -n or -q options are present. OPTIONS
The following options are supported: -d Force a system crash dump before rebooting. See dumpadm(1M) for information on configuring system crash dumps. -l Suppress sending a message to the system log daemon, syslogd(1M), about who executed halt. -n Prevent the sync(1M) before stopping. -q Quick halt. No graceful shutdown is attempted. -y Halt the system, even from a dialup terminal. FILES
/var/adm/wtmpx History of user access and administration information. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
dumpadm(1M), init(1M), reboot(1M), shutdown(1M), sync(1M), syslogd(1M), inittab(4), attributes(5), smf(5) NOTES
The halt and poweroff utilities do not cleanly shutdown smf(5) services. Execute the scripts in /etc/rcnum.d or execute shutdown actions in inittab(4). To ensure a complete shutdown of system services, use shutdown(1M) or init(1M) to reboot a Solaris system. SunOS 5.11 2 Nov 2004 halt(1M)