script to run on startup 

Newsgroups:  gmane.linux.debian.user
Date:        Wed, 03 Aug 2005 08:22:59 +0000
  1. Make a file called /etc/init.d/local with a text editor. This file is a script so it should always start with the following line:

    #! /bin/sh
  2. Add the following command to the file:

    mysql -u root --password=passwd syslog < /tmp/mysql.pipe
  3. Make this file executable with:

    chmod +x /etc/init.d/local
  4. Next, link the new local file by running:

    update-rc.d local defaults 80

Florian Dorpmueller

script to run on startup 

make the service only has start but no stop:

station:~# update-rc.d local start 80 2 3 4 5 .
 Adding system startup for /etc/init.d/local ...
   /etc/rc2.d/S80local -> ../init.d/local
   /etc/rc3.d/S80local -> ../init.d/local
   /etc/rc4.d/S80local -> ../init.d/local
   /etc/rc5.d/S80local -> ../init.d/local
station:~#

Thomas Adam