Sponsored Content
Full Discussion: Help Me
Top Forums UNIX for Dummies Questions & Answers Help Me Post 27851 by cerberusofhate on Sunday 8th of September 2002 04:45:10 PM
Old 09-08-2002
If you want to enable it at startup, (assuming that you are using Linux), place a small file in /etc/init.d, and place in that file the command to load the script. Then, depending on your distrobution (you may not even have a /etc/init.d directory, in which you can place it in /etc/rc.d), you can either enable startup of this script by running the distrobution-specific (usually) program that will enable that script @ startup, for instance, in Red Hat, it would be the ntsysv command. In Debian, it would be the update-rc.d.
startup(7)						 Miscellaneous Information Manual						startup(7)

startup - event signalling system startup SYNOPSIS
startup [ENV]... DESCRIPTION
The startup event is generated by the Upstart init(8) daemon after it has completed its own initialisation and is the signal that the rest of the system may be started. Typically this will involve checking and mounting the partitions and drives that form the filesystem, loading drivers for connected devices and starting the X windowing system or other login environment. In the default Upstart configuration, the primary task run on the startup event is the /etc/init/rc-sysinit.conf job responsible for gener- ating the System V compatible runlevel(7) event. See that page for a more detailed explanation of this process. Paradoxically there is currently no corresponding Upstart-native event signifying that the system is to be shutdown, only the System V com- patible runlevel 0 and runlevel 6 events provide this functionality. EXAMPLE
A service with no other dependencies run on startup might use: start on startup SEE ALSO
runlevel(7) init(8) Upstart 2009-07-09 startup(7)

Featured Tech Videos

All times are GMT -4. The time now is 03:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy