How to add software to the start-up on Ubuntu.

Non-Datatex Product Support.
General support issues on PCs and Servers that is related to Datatex products.

Moderators: Leon van Heerden, Luanda_Junzi

How to add software to the start-up on Ubuntu.

Postby Leon van Heerden » Mon Nov 28, 2011 3:34 pm

The start-up file "/etc/rc.local" can be used to add commands to that will execute on the start-up of the server. please ensure that any commands that you run will not return an error code/state since the script will stop executing at that point and no further commands in the file will be executed.

It is much better to place all your commands in a shell script and then call the shell script from the rc.local

/usr/local/bin/startmyapp.sh
Code: Select all
#!/bin/bash
/sbin/ifconfig eth0:1 192.168.10.2 2>&1 /dev/null



Now add your script to the startup
/etc/rc.local
Code: Select all
/usr/local/bin/startmyapp.sh
----
Leon van Heerden
http://www.datatex.co.za
Leon van Heerden
 
Posts: 332
Joined: Fri Oct 29, 2010 11:21 am
Location: Cape Town

Return to General Support

Who is online

Users browsing this forum: No registered users and 1 guest