Using daemon from /etc/init.d/functions
Michael L Torrie
torriem at chem.byu.edu
Fri Mar 30 14:46:59 MDT 2007
On Fri, 2007-03-30 at 14:37 -0600, Steve wrote:
> As an interesting aside, I once decided to cheap out on a server, and
> went with one of those shared hosting for noobs deals. I created a
> simple c++ program that that basically just piped a TCP connection
> straight to bash, did the double fork trick, then wrote a PHP script
> to allow me to launch it remotely.
> Poof instant shell access :D
A more correct solution to daemonizing an external program is here:
http://www.clapper.org/software/daemonize/
More information about the PLUG
mailing list