[SLE] init script help

From: Sunny (sloncho_at_gmail.com)
Date: 04/29/05

  • Next message: Gary: "Re: [SLE] mail migrations"
    Date: Fri, 29 Apr 2005 11:07:35 -0500
    To: Suse <suse-linux-e@suse.com>
    
    
    

    Hi,

    I'm trying to run my RAID adapter monitoring tool. Unfortunately, Dell
    provide this tool only for RedHat.

    Eitherway, I installed this rpm and it is running good on SuSE 9.3.
    Now I want to make it integrate good with the system.

    So, using the skeleton, and the original script provided with the rpm,
    I created something ... which is not working really OK. It starts the
    service, but the status and the stop parts are ... well, I'm not a
    scripting guy at all :)

    So, from the RH script, they start the service with:
    daemon MegaCtrl -start
    ans stop it with
    daemon MegaCtrl -stop

    /usr/sbin/MegaCtrl is a symlink to /usr/sbin/MegaCt32, which is binary
    executable.

    After starting the service from CLI with:
    #MegaCtrl -start
    the service is started, and ps aux | grep Meg produces:
    linux:/home/sunny # ps aux | grep Meg
    root 13715 0.0 0.0 1340 488 ? Ds 10:49 0:00
    /usr/sbin/MegaServ MegaCtrl

    So, it seems that the real executable is MegaServ, and it breaks how
    all the SuSE init subroutines like killproc, rc_status, etc. work.

    As I said, I'm not a scripting guy, neither I have used RH, so I do
    not know what daemon command in their script does and how it works, so
    I can implement a similar functionality for my SuSE init script.

    I understand that maybe the info provided is not enough, and I have
    only these binaries, so I have no control over them, but any help will
    be highly appreciated.

    Attached is the script I created. As and addition, if I invoke this
    script with "start" it starts the service, but reports failed. So I
    guess there is a collision in how startproc and rc_status work and
    query the status. And it can not stop the service.

    Any suggestions how to change it are very welcome.

    Or, would you suggest that just starting this tool from boot.local
    (even if it is not "beautiful") is an option?

    Cheers
    Sunny

    
    

    -- 
    Check the headers for your unsubscription address
    For additional commands send e-mail to suse-linux-e-help@suse.com
    Also check the archives at http://lists.suse.com
    Please read the FAQs: suse-linux-e-faq@suse.com
    

  • Next message: Gary: "Re: [SLE] mail migrations"

    Relevant Pages