Leon Anavi
IT Tips && Tricks

Administration

Created: 21.09.2009 11:41 Last Modified: 21.09.2009 11:41 Views: 8237
Keywords: boost, Linux, rc.local, start-up

Load an Application at Linux Boot

Linux Application Start-up

To execute automatically an application at Linux boot open /etc/rc.local and add a command to start the desired application. In fact /etc/rc.local is a symbolic link to /etc/rc.d/rc.local. Make sure to add the correct path to the application. Automatic execution of the application does not require user login.

Example

The example demonstrates how to open /etc/rc.local with vim on Linux fc11 and configure automatic mount of an ntfs hard drive at star-tup.
[leon@localhost ~]$ vi /etc/rc.d/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local

ntfsmount /dev/sda1 /mnt/c


  Home | About | Contact | Disclaimer | Sitemap © 2009-2022 Leon Anavi. All rights reserved.