Hello everyone, I am new to Linux, some help with the following would really be appreciated : 1.How can I load asterisk automatically in Linux each time the machine boots up (like autoexec.bat in windows) 2.how I can shut down and restart asterisk automatically every night? Thanks San -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040901/1ef7d9dd/attachment.htm
Look at the /etc/rc.d and init.d directories... Unix has run levels and there are shell scripts (like batch files) that are called upon system booting.. As far as nightly restart - you need to use cron or atd (at daemon) these processes allow you to schedule scripts to run... Otherwise that's it - try doing some research online and if that doesn't help - ask offline -----Original Message----- From: San Singhania [mailto:san@lantone.com.sg] Sent: Wednesday, September 01, 2004 1:42 PM To: Asterisk Subject: [Asterisk-Users] Rebooting Linux / Asterisk Hello everyone, I am new to Linux, some help with the following would really be appreciated : 1.How can I load asterisk automatically in Linux each time the machine boots up (like autoexec.bat in windows) 2.how I can shut down and restart asterisk automatically every night? Thanks San -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040901/13cbf917/attachment.htm
On Wednesday 01 September 2004 13:41, San Singhania wrote:> 1.How can I load asterisk automatically in Linux each time the machine > boots up (like autoexec.bat in windows) 2.how I can shut down and restart > asterisk automatically every night?I use this: su - root -c '/usr/bin/screen -d -m /usr/sbin/asterisk -g' This puts asterisk in a screen session and allows it to receive remote requests (asterisk -r) the su root is required so that the screen session shows up in root's screen list. Why would you want to shut down and restart asterisk every night? -A.