Quote:
Originally Posted by Lazarus
This is what I have at the end of my rc.local. Just an example for you. It mounts various filesystems. shareprx is run as a demon hence the & at the end of the line. Commands like mount_spare are just bash scripts of mine.
I should think you can run most things. Append your stuff to the end of the file. Before you change a system file I keep a copy as insurance. ie
cp rc.local rc.local.original
have fun!
ifconfig eth0 192.168.1.2
hostname server
modprobe aic7xxx_old
modprobe ppa
#
swapon /dev/hdb2
#
mount -t reiserfs /dev/home /home
/home/source/shell/mount_spare
/home/source/shell/mount_disk2
/home/source/shell/mount_music
/home/source/shell/mount_cdimage
#
#
# restart xinetd else port 2007 for dialout not available
# for some reason
#
/etc/rc.d/init.d/xinetd restart
cd /home/teletext
/home/teletext/shareprx batch&
#
# start kiss server
/home/source/shell/run_kiss_server
#
#
|
I cofused about daemon doing it many ways.
Can u tell me exact way to write a Daemon and place it where
with each and every steps Beacuse i am new so I stuck here.
My deamon objective is to execute a java program at system boot up.
Also i want to clarify whether my Daemon is running at start up.
If u can please hlp me.