ispCP - Board - Support
ispCP daemon commands - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Development Area (/forum-1.html)
+--- Forum: Suggestions (/forum-2.html)
+--- Thread: ispCP daemon commands (/thread-4202.html)



ispCP daemon commands - suw - 09-06-2008 07:41 AM

Hello
Can somebody please tell how to communicate with ispCP daemon?
The daemon is there to do stuff that a regular user is not allowed to do, to call ispcp scripts - right?
How can one announce the daemon that new email is added. I need low level documentation, from someone who know this daemon. I don't have time to spend on digging c code. Others developers might be interessed too on this informations.

I've made a php script that allow adding email from a remote server. All I have to do is to tell the daemon to make the users.

thank you.


RE: ispCP daemon commands - Achmed - 09-06-2008 06:17 PM

The daemon is just listening on localhost is think.
Take a look at the send_request()-Function in ispcp-functions.php.
Fill the database -> call the send_request-Function.
Status musst be 'toadd'.


RE: ispCP daemon commands - suw - 09-06-2008 06:55 PM

OK, that's what I see there.

1. the daemon is listening ONLY on localhost.
2. in database "status" have to be one of the following: toadd, change, restore, delete, [toenable, todisable](to suspend an account).
2. communication with daemon returns OK if no error occured or 999 if error.
3. daemon calls ispcp-rqst-mngr by execute query command

Quote:suw@server:~$ telnet localhost 9876
Trying 127.0.0.1...
Connected to server3.internetix.ro.local.
Escape character is '^]'.
250 OK ispCP Daemon v1.1 Welcomes You!
hello v1.1
250 OK 127.0.0.1/v1.1
execute query
250 OK request is being processed.
bye
250 OK Good Bye!
Connection closed by foreign host.


I really think that this informations must be published for ispCP developers. This will improve developers to speed up the development process.


RE: ispCP daemon commands - aseques - 09-08-2008 08:13 PM

Quote:I really think that this informations must be published for ispCP developers. This will improve developers to speed up the development process.
I agree, having some detail on that, could make the transitions from other panels (plesk, cpanel, etc ... ) much easier ...
i.e. in plesk you have a very good cli from wich you can do the same than with the web interface

If there's any docs in the forums I couldn't see it, if I someone points me to the place I can do some documentation ..


RE: ispCP daemon commands - xister - 09-08-2008 08:38 PM

Documentation:
http://www.isp-control.net/documentation/start

A Post under the topic development is the best place in my eyes.