Hi,
I am running TS-Linux on TS-7260. I wrote an application that
calculated some data and stores it to the network drive. The
application works fine from command line. What I am trying to do is
to make application start automatically at boot time. Since I need to
store the data at network drive, I also need to mount network drive at
boot time. I did some search and it sounds like the best option is to
create a script in etc/init.d directory.
So, my script is quite simple:
#! bin/sh
case $1 in
start)
mount -t nfs /ipaddress:/pub /mountpoint
cd /mydirectory
./MyApplication
stop)
esac
Now I need to "update symbolic links" by update-rc.d
When I try to run
$ update-rc.d MyScript defaults 99
I am getting error message:
-sh: update-rc.d: not found
Does TS-Linux have update-rc.d? If not, how can I "activate" the script?
Thanks in advance,
- Alex
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|