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
startup
Results 1 to 3 of 3

Thread: startup

  1. #1

    startup

    Let's say I don't use rpm but compile program from (tar.gz).
    Is there any way I can make it appear in ntsysv and make it work with
    'service start/stop/restartt/status/whatever' commands?
    (rh 7.3)
    Thanks.

  2. #2
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760

    Re:startup

    You wanna go here :

    Code:
    [aschott@system11 rc.d]$ pwd
    /etc/rc.d
    [aschott@system11 rc.d]$ ls
    init.d  rc0.d  rc2.d  rc4.d  rc6.d     rc.sysinit
    rc      rc1.d  rc3.d  rc5.d  rc.local
    [aschott@system11 rc.d]$
    And you will see a bunch of rcX.d folders. Each folder (X) is a runlevel. Go into it and you will see :

    Code:
    [aschott@system11 rc5.d]$ pwd
    /etc/rc.d/rc5.d
    [aschott@system11 rc5.d]$ ls
    K03rhnsd      K50snmpd      K84ospf6d     S12syslog      S60lpd
    K05saslauthd  K50snmptrapd  K84ospfd      S13portmap     S85gpm
    K15httpd      K54pxe        K84ripd       S14nfslock     S90crond
    K20nfs        K65kadmin     K84ripngd     S17keytable    S90vmware
    K24irda       K65kprop      K85zebra      S20random      S90xfs
    K28amd        K65krb524     K91isdn       S25netfs       S91smb
    K30sendmail   K65krb5kdc    K92iptables   S26apmd        S95anacron
    K34yppasswdd  K74ntpd       K95firstboot  S28autofs      S95atd
    K35winbind    K74ypserv     K96pcmcia     S55sshd        S98wine
    K45named      K74ypxfrd     S05kudzu      S56rawdevices  S99local
    K46radvd      K84bgpd       S10network    S56xinetd      S99webmin
    [aschott@system11 rc5.d]$
    See all the K and S files .. The S is for "start" and the K is for "kill". The number is the order in which all K or S signals are processed. IE, S90crond is executed before S99webmin during the startup. So creating a script you can create a new service that will show up in your ntsysv list.

  3. #3

    Re:startup

    I wouldn't put the script in your runlevel directory. Instead, I would put it in /etc/rc.d/init.d (make sure it is executable) and then put a symlink to that script in each runlevel directory that you want that service to be started or killed in. Of course, if you want an executable that responds to the "start, stop, restart" commands, you will have to compensate for that in your script. Simply making a script that says something like "/usr/local/proftpd/proftpd start" will not respond to parameters passed to it at the cli. Look at some of the other scripts in your init.d directory for examples of how to write a full on script to stop and start services. Remember also, if you use rc.local, the service will be the last thing started, it will be started in all runlevels (at least I think so) and can only be killed by killing its PID.

Similar Threads

  1. Startup App
    By GhostDawg in forum Ubuntu / Debian
    Replies: 6
    Last Post: 09-01-2006, 07:29 AM
  2. Slackware Startup
    By vwgtiturbo in forum Linux - Software, Applications & Programming
    Replies: 5
    Last Post: 04-27-2006, 03:44 AM
  3. Critical err 102 on startup
    By Detector in forum Windows - General Topics
    Replies: 4
    Last Post: 08-17-2005, 04:08 AM
  4. KDE freezes on startup
    By gordingin in forum Linux - General Topics
    Replies: 4
    Last Post: 09-28-2004, 05:27 PM
  5. RH8 startup help
    By mcdougrs in forum Linux - General Topics
    Replies: 7
    Last Post: 11-06-2002, 09:11 AM

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
  •