Académique Documents
Professionnel Documents
Culture Documents
Here’s a very simple script which is divided into two parts, code which always runs, and
code which runs when called with “start” or “stop”.
If you need something like a service to start at boot time, you need this.
Debian stores script needed to usually start, stop and restart in /etc/init.d/
Scripts contained have to be able to manage at least the start and stop parameters.
exit 0
Anyway you can add several “cases” and options, take a look at you scripts in /etc/init.d
directory.
Once you have your start/stop script, you add it let’s say at boot time, with the command