How to import the new service


 
Thread Tools Search this Thread
Operating Systems Solaris How to import the new service
# 1  
Old 03-12-2009
How to import the new service

Hi

How to import the new service which i created without root permission.
As well how we can set the uid in service.

When i import i got the following error,

svccfg import /var/svc/manifest/site/newservice.xml
svccfg: Could not create temporary service "TEMP/site/newservice" (permission de
svccfg: Import of /var/svc/manifest/site/newservice.xml failed. Progress:
svccfg: Service "site/newservice": not reached.
svccfg: Instance "newservice": not reached.



Regards,
Kalai
# 2  
Old 03-12-2009
Use this as your checklist solaris 10: add new svc
# 3  
Old 03-12-2009
Thanks,But these things can be done only by the root user.
but i need to create new bundle of service and import the service whitout root access.
# 4  
Old 03-12-2009
The question that comes to my mind is, "why do you NOT want to import this service as root"? When stuff breaks you want root to fix it, so why not let root control what goes on with her/his server? If you are still insistent on this, ask your root to grant you RBAC rights.
# 5  
Old 03-13-2009
The application which am going to start will not work start when we start as root.I have one more doubt,where i can mention the uid in service
# 6  
Old 03-18-2009
SMF services have to be installed and run as root, what you can do is in the startup script (in /var/svc/method/application IIRC) do the following to run your application as a non-root user:
su - username -c commandtostartapplication

The startup script being what you call from the start section of your /var/svc/manifest/site/newservice.xml file.
# 7  
Old 03-19-2009
Thanks for all u r help Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Run one service after another service has finished - systemd

Hi all I would like to know how to run task2.service after task1.service has finished. task1.service has a timer (task1.timer), that makes it run every 5 minutes OnCalendar=*:0/5task2.service is basically a script, that has to work on the files created after task1 has finished. This is what I... (2 Replies)
Discussion started by: guilliber
2 Replies

2. Shell Programming and Scripting

export / import

I have a calling script which consists of calls to other scripts via the sh command. ie vi callscript.sh sh smallscript1.sh extra unix commands sh smallscript2.sh exit In smallscript1, I prompt for a filename, which I handle via :- read f1 export f1 I then need... (5 Replies)
Discussion started by: malts18
5 Replies

3. Shell Programming and Scripting

Import variable

Can i import a value of a variable in a different related script. (2 Replies)
Discussion started by: manish.s
2 Replies

4. UNIX for Dummies Questions & Answers

import

Dear All, If while the databsae was shut down, an import command has been done. Will the import result will return 1? Best Regards, Omran (1 Reply)
Discussion started by: omran
1 Replies

5. Shell Programming and Scripting

import

i'm importing tables to oracle 7, but sometimes import give me warnings (not failures) how can i rollback the whole imported tables if warnings occured please advise thanx (2 Replies)
Discussion started by: omran
2 Replies
Login or Register to Ask a Question