Need Boot up Script


 
Thread Tools Search this Thread
Operating Systems Linux Ubuntu Need Boot up Script
# 1  
Old 11-23-2007
Need Boot up Script

Hai,

I want to run DYNDNS (inadyn) when the system is booted.
I placed this Directory in /opt/inadyn.



/opt/inadyn


And also I want to know how to run any script in system boot up and Steps to follow.


can anyone help me ?
Forward Message
# 2  
Old 11-23-2007
From their site : "The inadyn executable found in bin/linux/inadyn is self contained and can be launched at any time" - in your case you've put the binary executable in /opt, which is fine I guess. So if you need to launch it on every system boot, put a script to call this pull path every time when the system boots, for example I have Fedora 8 as local workstation, I would put such commands in /etc/rc.local file, you just have to find the file where to place it, depending on your flavor of unix.
# 3  
Old 11-28-2007
If i copy the inadyn file and put it in /etc/rc.local will it work
# 4  
Old 11-28-2007
well, if rc.local is being executed upon system boot, then the answer is yes, here is the content of my rc.local file :
Quote:
#!/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
echo "some text" >> some.file.
# 5  
Old 11-29-2007
I am using UBUNTU.
here is my rc.local

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

exit 0
~
~

Will it work?
I have written a script and moved to /etc/init.d/
The file name is inadyn the content as follows

#!/bin/sh
case "$1" in
start)
/usr/sbin/inadyn
;;
stop)
;;
*)
echo @"Usage: $0{start}"
exit 1
esac
exit 0
~
And linked to rc2.d
ln -s /etc/init.d/inadyn S30inadyn

But not working.

Can u please help me ?
# 6  
Old 11-29-2007
Before the "exit 0" part of your rc.local put the full path to the binary with the respective parameters.
# 7  
Old 12-06-2007
As you told I added in rc.local .
Here is my rc.local


#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
/opt/inadyn/bin/linux/inadyn
exit 0



But not working.What to do?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Alsa Boot Script

Due to a bug in Debian Sid I'm currently having to run "alsactl init" at the command-line to start my sound card. This wasn't a big issue, but I though automating this simple task at boot would be more efficient. I made the following script in /etc/init.d/ and ran chmod +x on it: ... (5 Replies)
Discussion started by: Azrael
5 Replies

2. Shell Programming and Scripting

Boot/Shutdown script automation

Looking to automate some commands to run at boot and poweroff in a startup/shutdown script. How do I place it on the system so that it will be run automatically? I don't want to use cron, not quite specific enough, random times when I may boot or shutdown. ---------- Post updated at 10:47 PM... (8 Replies)
Discussion started by: 3therk1ll
8 Replies

3. Red Hat

Ethtool script not running on boot.

Hi, there is an incompatibility between my NIC and my Western Digital Powerline adapters which appears to cause autonegotiation to fail intermittently, most often following a reboot. Running the following Ethtool script will establish a connection immediately: #!/bin/sh # chkconfig: 345 85... (12 Replies)
Discussion started by: torley
12 Replies

4. Solaris

Solaris x86 installation using jumpstart does not local boot ( boot from hdd)

I am trying to install Solaris x86 using the Jumpstart server. I run the add_install_client command with appropriate options, and reboot my x86 Target box. The installation starts fine and unattended. After the installation completes and the target goes for a re-boot, it does not boot from the HDD... (9 Replies)
Discussion started by: hemalsid
9 Replies

5. Boot Loaders

Reboot and Select Proper Boot device or insert Boot media in select Boot device and press a key

Hello, I have kubuntu on my laptop and now I decided to switch to Windows 7. I made the bios settings properly (first choice is boot from cd\vd) but I see the error " reboot and select proper Boot device or insert Boot media in select Boot device and press a key " I have tried CD and... (0 Replies)
Discussion started by: rpf
0 Replies

6. Ubuntu

Boot script in 9.10

Hello, I'm writing a simple boot script that uses etc/init/script to run a called file from the .xinitrc file. So the script goes as such. { start on runlevel stop on runlevel exec xinit } then that executes the .xinitrc content which then reads. /usr/bin/python ... (2 Replies)
Discussion started by: hizzle
2 Replies

7. Solaris

boot up script in solaris 10

Hi I'd like to add a start up script to run at boot time.I think that pre solaris 10 you'd add it to /etc/init.d. But I'm using Solaris 10 now and it has this SMF config thing which I'm not sure whether I have to add a service to it or not. Does anyone know how add a script at boot time on... (2 Replies)
Discussion started by: fishman2001
2 Replies

8. UNIX for Dummies Questions & Answers

Script in boot sequence

Hi , I have some problems with my library when the sytem boot : When HPUX is booting, HPUX and STAPE claim the drive initially. HPUX assigns an instance number. The instance number is tied to the hardware path. Near the end of the boot, the ATDD driver claims the drive from STAPE based... (1 Reply)
Discussion started by: delphine
1 Replies

9. Solaris

solaris boot problem boot error loading interpreter(misc/krtld)

When I installed the SOLARIS 10 OS first time, the desktop would not start up, this was because of network setup. Reinstalled worked. After a week due to some problem I had to reinstall OS, installation went fine and but when i reboot I get this error. cannot find mis/krtld boot error loading... (0 Replies)
Discussion started by: johncy_j
0 Replies

10. UNIX for Advanced & Expert Users

Cannot boot - Boot : Panic : File size out of range (EWS-UX/V unix)

Hey ! I am running EWS-UX/V (Rel 4.2) on NEC EWS/4800/330 station and I am having problems rebooting my station : I am getting the following message on display : BOOT : PANIC : File size out of range. According to user guide, this error is occuring when a file exceeding the limit and/or... (2 Replies)
Discussion started by: fredo
2 Replies
Login or Register to Ask a Question