Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
Starting programs on boot
Results 1 to 6 of 6

Thread: Starting programs on boot

  1. #1
    flandercan
    Guest

    Starting programs on boot

    How can i start a program on boot would i just place the command in the init.tab file, the program needs to start with root permisions??

    thanks
    paul

  2. #2

    Re:Starting programs on boot

    erg, once again, i am at work and unable to test this. You should be able to add an entry to /etc/inittab that will handle starting processes upon boot.

    The inittab file describes which processes are started at
    bootup and during normal operation (e.g. /etc/init.d/boot,
    /etc/init.d/rc, gettys...). Init(8) distinguishes multi-
    ple runlevels, each of which can have its own set of pro-
    cesses that are started. Valid runlevels are 0-6 plus A,
    B, and C for ondemand entries. An entry in the inittab
    file has the following format:

    id:runlevels:actionrocess

    Lines beginning with `#' are ignored.


    So you could do that. Or you could do it the really easy way.


    Add whatever it is that you want to do, as a service.
    the hard way:

    Adding a service to a run level

    To add a service to a run level, you need to create a symbolic link pointing to that service's script in the init.d directory. When creating the link, be sure to number it so that the service is started at an appropriate time. If the service you're adding requires networking, be sure to assign your new service a number higher than networking, to ensure it will start after the networking scripts have been executed.

    To add "lpd" to run level 3, you would use:

    ln -s /etc/rc.d/init.d/lpd /etc/rc.d/rc3.d/S64lpd


    the easy way is to use the gui that comes with KDE, and probably also with gnome


    Goodluck,

    Babbing

  3. #3

    Re:Starting programs on boot

    or, if you just want to load up a normal program, you can add it to /etc/rc.d/rc.local
    this file is exceuted last, before you get a login screen.
    whatdoyougetwhenyoumultiplysixbynine??

  4. #4

    Re:Starting programs on boot

    can you start a job as root like that?

  5. #5

    Re:Starting programs on boot

    i think they are executed as root
    i would have to check with JimH
    whatdoyougetwhenyoumultiplysixbynine??

  6. #6

    Re:Starting programs on boot

    heh, if you can ever find him

Similar Threads

  1. Master Boot Record / XP Dual Boot
    By gr8rcake in forum Linux - General Topics
    Replies: 1
    Last Post: 09-19-2005, 05:06 AM
  2. starting pcmcia at boot?
    By S_D_Willie in forum Linux - Hardware, Networking & Security
    Replies: 3
    Last Post: 09-17-2004, 02:41 AM
  3. Alternative boot method for Linux/Win2k dual boot
    By Spot in forum Windows - General Topics
    Replies: 8
    Last Post: 10-04-2002, 06:42 AM
  4. starting Tomcat at boot up
    By alloy in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 07-03-2002, 02:39 PM
  5. Starting Mysql at boot
    By Poppo in forum Linux - Hardware, Networking & Security
    Replies: 9
    Last Post: 03-21-2002, 02:46 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •