Newsgroups: gmane.linux.debian.user Date: Wed, 03 Aug 2005 08:22:59 +0000
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
Add the following command to the file:
mysql -u root --password=passwd syslog < /tmp/mysql.pipe
Make this file executable with:
chmod +x /etc/init.d/local
Next, link the new local file by running:
update-rc.d local defaults 80
Florian Dorpmueller
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