LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-31-2006, 06:15 PM   #1
przemu
LQ Newbie
 
Registered: Oct 2006
Posts: 3

Rep: Reputation: 0
deamon for apache


Hi,

i would like to make a web site, where user put some info, i get this info, send to my program which make somethnig, and then sends the result back to the web site. To do its work, program needs to be run all the time, because it needs some data which has to be generated at start - i need the best performance. Anyway, i wrote a daemon which creates a unix domain socket, and acts like a multithreaded server listening on that socket. In php i wrote a client, which communicate with the daemon. Everything works fine, but the socked has read, write and exec permissions for anybody. Is there a way to start up a daemon, which will create a unix domain socket with permission to read and write for him and apache group only? I have no idea how to manage that. I can't use chown because, only root can do that. Maybe there is a way, to create a user whose group would be apache, and that user will run the daemon. But i want the daemon to be started by init, so how another user can run it??

Thanks in advance for any help.

P.S. Sorry, for my bad english. I hope it at least seems clear ;-] Ask, if i complicated it too much.

Regards,

Przemek
 
Old 10-31-2006, 06:17 PM   #2
przemu
LQ Newbie
 
Registered: Oct 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Or maybe apache daemon could start my daemon?? I have no idea. Please help ;-)

Regards
 
  


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
Lisa Deamon AndyRids Linux - Networking 6 03-31-2006 10:33 AM
gentoo deamon ps2cho Linux - Distributions 17 07-28-2005 09:39 PM
vsftpd deamon MMMarc Linux - Newbie 2 02-06-2005 09:19 AM
Lisa Deamon ptreves Linux - Networking 6 09-09-2004 02:47 PM
deamon dies rmr2001 Linux - Newbie 0 01-09-2002 07:38 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:47 AM.

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