This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Start/shutdown eggdrop

General support and discussion of Eggdrop bots.
Post Reply
M
Magnetronkip
Voice
Posts: 3
Joined: Sat Jul 29, 2006 9:14 am

Start/shutdown eggdrop

Post by Magnetronkip »

Is it possible to shutdown and start a eggdrop with php?
and a contrab, if it is how is the best way to do it ?
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Post by r0t3n »

It is possible, you will need to create a php class to connect to the eggdrops partyline, then execute the commands through the php class.

Or you can create a php class to connect to the eggdrops shell, and use the kill and ./eggdrop etc ... as you cant connect to the eggdrops partyline to start it back up...

Hope this helps you
r0t3n @ #r0t3n @ Quakenet
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

its much easier than that. To start just use su -c (run as appropriate user) and to stop, just use kill -15 (sigterm),
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Post Reply