[plug] loading programs on startup
James Devenish
devenish at guild.uwa.edu.au
Thu Oct 2 19:02:56 WST 2003
Hi,
In message <20031002103549.GA797 at tesla>
on Thu, Oct 02, 2003 at 06:35:49PM +0800, Ryan Smith wrote:
> I've jsut made a program the continually checks the com port status,
> then shuts down the computer when a button is pressed.
> I was wondering is it possibly to load it when the computer boots, and
> do i have to change the code at all to make this happen (attached).
I forget which distribution you are using, but the answer in any case is
that you will not need to modify you programme. I think you have at
least one machine running Debian, don't you? Basically, there is
directory called /etc/init.d which contains files that can be used to
stop and start daemons. Standard practice is to write one of these
control files for your own daemon. Then, you need to symlink it so that
your control file is invoked with the 'start' argument when your machine
comes up to the appropriate runlevel. You can read more about this at
/etc/init.d/README and /usr/share/doc/sysvinit. For such a simple case
as yours, this probably seems complicated.
_______________________________________________
plug mailing list
plug at plug.linux.org.au
http://mail.plug.linux.org.au/cgi-bin/mailman/listinfo/plug
More information about the plug
mailing list