Moderator Control Panel ]

How to add startup script in MOIPro

How to add startup script in MOIPro

Postby steven » Sun Feb 01, 2015 10:17 pm

Hi

A lot of people ask us how to add the startup script in MOIPro,so send it here,because MOIPro using systemd start service have some difference than before.You need to create a systemd startup service,but you can add your startup script to our service too.more easy way.

eg: add astra startup command.

You can use SSH conect to your MOIPro

vi /usr/bin/moipro-webserver

add to the last like this:

file=/usr/local/tbs/apache2.4.3/htdocs/www/configs/radio.conf
if [ -f $file ]; then
value="$(head -1 $file)"
temp=`echo $value | cut -d : -f2`
if [ $temp -eq 4 ]; then
sleep 20
initstartdvblast.sh
fi
fi

sleep 20
astra /etc/astra/adapter0.lua
astra --relay -p 12000 /etc/astra/xproxy-ui.lua



Thanks

Kind Regards

steven
steven
 
Posts: 2239
Joined: Fri Aug 06, 2010 3:23 pm

Return to MOI Pro

Who is online

Users browsing this forum: No registered users and 7 guests