[SLE] init script help
From: Sunny (sloncho_at_gmail.com)
Date: 04/29/05
- Previous message: Jul: "Re: [SLE] Alert"
- Next in thread: Sunny: "Re: [SLE] init script help"
- Maybe reply: Sunny: "Re: [SLE] init script help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: Jul: "Re: [SLE] Alert"
- Next in thread: Sunny: "Re: [SLE] init script help"
- Maybe reply: Sunny: "Re: [SLE] init script help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: rpm check script problem
... Part of the script involves using file descriptors. ... come from $filename,
you should have said ... The next read statment is reading from channel 0 so it reads the
first ... line of $filename and puts it into the variable rpm. ... (Fedora) - Re: [SLE] repost: Just installed apt4rpm on SuSE 8.2 and having problems
... I made a script that can easily test the rpm update (it actually performs "rpm
... Tired of knowing which apt command does what and tired of the special argument ...
The script will hide commands like: ... (SuSE) - Re: rpmdb crashed, how to repair? [FC3]
... But incase you do what to repair the rpm database you do it by: ... I was able
to get a script that will show you the version information ... echo "Starting search
for multiple rpms versions." ... Look for multiple versions of the same package ...
(Fedora) - Re: ATI Graphics Driver
... an RPM package but the RPM was unable to compile the required kernel ... module
in the postinstall script but now I find that I can neither ... compile this myself
... ... Software] to be able to compile kernel stuff. ... (alt.os.linux.suse) - Re: what Linux versions work with IFC 8.0?
... >> there dog using linux is using an rpm based distribution. ... >
distributions are covered by either rpm or deb. ... > you still have to use the install
script for a simple upgrade when it ... Shift to the Left; ... (comp.lang.fortran)