ts-7000
[Top] [All Lists]

[ts-7000] How to start application at boot time on TS-7260

To:
Subject: [ts-7000] How to start application at boot time on TS-7260
From: "alexanchoragealaska" <>
Date: Wed, 02 Apr 2008 00:24:12 -0000
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/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU