LinuxQuestions.org
Help answer threads with 0 replies.
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 12-16-2008, 06:23 PM   #1
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Rep: Reputation: 36
Is there a way to add an inetd-forked process to be executed in an user project?


Hi.

I configured some processes such as the subversion sever process (svnserve) to be executed by inetd. Inetd, when configured with nowait option, is documented to fork() and exec() the server process on every request. By the way, documentation states that process and task controls are inherited across fork() system call so that, even if an user svnuser and a default user project user.svnuser has been setup, the svnserve instance is not being executed in the user.svnuser project. The consequence is that, for example, project.cpu-cap options for that process does not take effect.

Is there a way to enforce this kind of behavior? Maybe I could find a way to execute a server process another way: in the case of svnserve I could execute it in daemon mode and not via inet. Documentation is clear about fork(), but it seems odd to me that in the case of inet server processes the project database is being ignored, while it is not in the case of at and cron.

Do you have any hint about this?
 
Old 12-17-2008, 09:45 PM   #2
eggixyz
Member
 
Registered: Apr 2008
Posts: 310

Rep: Reputation: 30
hey there,

perhaps the easiest thing to do would be to wrap the svn process. That way you could let inetd fork and exec your wrapper, which could set the project and project variables before running your svn session.

Just a thought. I'm not sure how else (without affecting the entire system) you could enforce the correct project settings if the inetd server is forking/execing and (as always) running as root.

Best wishes,

Mike
 
  


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
how to kill a forked child-process in perl iceman_san Linux - Newbie 5 09-01-2007 10:51 AM
setsid() without forking OR debugging forked process with gdb ta0kira Programming 3 08-09-2007 06:22 AM
SSH forked process shozmo Linux - Newbie 5 06-23-2006 02:49 AM
LXer: Print.Print Add to Project.Add to Project Bookmark with del.icio.us Simplify PHP Development with WASP LXer Syndicated Linux News 0 01-21-2006 08:46 PM
how to connect forked process to a specific terminal pcweirdo Linux - Software 2 02-22-2005 03:17 AM

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

All times are GMT -5. The time now is 01:06 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