LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 10-06-2009, 03:30 PM   #1
sgmeunier
Member
 
Registered: Jun 2006
Location: The Netherlands
Distribution: opensuse 11.1, opensolaris 2009.06
Posts: 36

Rep: Reputation: 18
Backing up service properties


Hi All

I've made some changes to the properties of one of my services using svccfg. Is there any way to backup these changes so that if I need to reinstall the package I can restore the properties easily?

I've looked in /var/svc/manifest but it doesn't look like the properties are saved there.

For more info:
I changed about 9 properties for svc:/network/http:apache22 so that it runs completely as non-root. I'm running OpenSolaris 2009.06

Thanks

Last edited by sgmeunier; 10-06-2009 at 03:31 PM. Reason: Added opensolaris version
 
Old 10-08-2009, 04:28 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You might want to create a new boot environment before experimenting with service properties and rollback to it should something goes wrong.

Alternatively, the documented way to archive properties is using the "svccfg archive" command and to restore them is the "svccfg restore" one.
 
Old 10-08-2009, 04:38 AM   #3
sgmeunier
Member
 
Registered: Jun 2006
Location: The Netherlands
Distribution: opensuse 11.1, opensolaris 2009.06
Posts: 36

Original Poster
Rep: Reputation: 18
Thank you very much jlliagre! That was just what I was looking for. I checked the man pages for svcadm and svcprop but never thought to check svccfg

Thanks a million.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
where are properties of my X ? abd_bela Debian 2 08-21-2008 07:15 AM
How to make TCP server a daemon / service much like a dhcpd service? rajat Linux - Networking 1 05-22-2007 01:29 AM
system properties maximyus Linux - Newbie 2 06-05-2005 03:07 AM
/sbin/service is empty every weekend and changed to service.1 LineS Linux - General 0 05-24-2004 02:08 AM
CD properties jro Linux - Laptop and Netbook 0 04-19-2004 04:57 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 12:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration