Current time: 11-15-2024, 03:50 PM Hello There, Guest! (LoginRegister)


Post Reply 
ispCP daemon commands
Author Message
suw Offline
Junior Member
*

Posts: 17
Joined: Sep 2008
Reputation: 0
Post: #1
ispCP daemon commands
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.
09-06-2008 07:41 AM
Find all posts by this user Quote this message in a reply
Achmed Offline
Junior Member
*

Posts: 104
Joined: Jan 2007
Reputation: 0
Post: #2
RE: ispCP daemon commands
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'.
09-06-2008 06:17 PM
Find all posts by this user Quote this message in a reply
suw Offline
Junior Member
*

Posts: 17
Joined: Sep 2008
Reputation: 0
Post: #3
RE: ispCP daemon commands
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.
(This post was last modified: 09-06-2008 07:19 PM by suw.)
09-06-2008 06:55 PM
Find all posts by this user Quote this message in a reply
aseques Offline
Member
*****
Dev Team

Posts: 330
Joined: May 2008
Reputation: 4
Post: #4
RE: ispCP daemon commands
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 ..
(This post was last modified: 09-08-2008 09:06 PM by Zothos.)
09-08-2008 08:13 PM
Find all posts by this user Quote this message in a reply
xister Offline
Member
*
Beta Team

Posts: 405
Joined: Oct 2006
Reputation: 6
Post: #5
RE: ispCP daemon commands
Documentation:
http://www.isp-control.net/documentation/start

A Post under the topic development is the best place in my eyes.
09-08-2008 08:38 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)