From: <ne...@ne...> - 2007-10-03 17:39:43
|
>=20 > Hi, > I'm new to starpy and fastagi (and asterisk, and python!) and have > been working on a fastagi script using the starpy library. I am > having a bit of trouble implementing a initialization script for > bootup, so that the daemon loads when my machine boots, and asterisk > starts up. Presumably this is the way most systems running the > asterisk+localhost_fastagi setup are put together, so I'm wondering if > there are any specific examples of init.d scripts (I'm running debian > etch). > -joe You can simply put the command line to start your fastagi daemon in /etc/rc.local, or you can write a little init script like this example[1] and put it in /etc/init.d, and also do an update-rc.d ( look at the man ) to enable it on boot.=20 Man pages to look at:=20 1- start-stop-daemon 2- update-rc.d [1] example init script for debian: www.oreilly.com/linux/blog/2007/06/condor_basic_startup_script_fo.html --=20 Franco Lanza My blog: http://www.nexlab.it email: ne...@ne... Fax/Tel: +39 0331 682151 Cell: +39 339 8125940 Busto Arsizio (VA) - Italy ----------------------------------- NO TCPA: http://www.no1984.org you can download my public key at: http://danex.nexlab.it/nextime.asc || Key Servers Key ID =3D D6132D50 Key fingerprint =3D 66ED 5211 9D59 DA53 1DF7 4189 DFED F580 D613 2D50 ----------------------------------- echo 16i[q]sa[ln0=3Daln100%Pln100/snlbx]sbA0D212153574F444E4957204553552045= 4D20454B414D204F54204847554F4E452059415020544F4E4E4143205345544147204C4C494= 2snlbxq | dc ----------------------------------- |