View Full Version : [ubuntu] Asterisk not starting after boot
luc_roy99
June 22nd, 2010, 04:20 AM
Ok I just installed the latest copy of Asterisk and Freepbx on Ubuntu 10.4 and I am trying to make it auto start on boot. I have attempted everything I could think of or find on line and nothing seems to work. I am not sure if this is caused by the new versions or I am just missing something.
Anyone encountered this yet?
Rubi1200
June 22nd, 2010, 10:08 AM
Not sure if this will work, but it might be worth trying:
Go to System > Preferences > Startup Applications > Add
a dialog box will come up and there you add the name of the program and the command, which means e.g. /usr/bin/asterix or whatever the correct path to your program happens to be. Then click Add and you should be good to go.
Hope this helps.
luc_roy99
June 22nd, 2010, 01:03 PM
that did not work.
the command I need ran when the system boots is 'amportal restart"
Rubi1200
June 22nd, 2010, 02:58 PM
Did you try amportal restart in the command field?
Then just give it a name and Add.
luc_roy99
June 23rd, 2010, 01:52 AM
that is what I put it but it did not work.
Rubi1200
June 23rd, 2010, 06:09 AM
Hmm; I am sorry to hear it has not worked for you.
Unfortunately, I don't have any other suggestions.
Hopefully, someone else here on the forums will have an idea for you.
Good luck!
:-)
SATA
September 18th, 2011, 09:14 PM
The above suggestion will not work, as amportal needs to be run as root.
Here is how I do it.
Switch to root privileges:
sudo -s
then run the following commands
cd /etc/init.d
ln -s /usr/local/bin/amportal /etc/init.d/amportal
update-rc.d amportal defaults
If this doesnt work, I suggest doing the following
sudo gedit /etc/rc.local
In that file, put in
amportal start
Put that just above the exit 0 line.
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.