I don't remember if I changed the oscar pfilter scripts, but the pfilter rpms already install and work in suse. But for pfilter to work as an installed package in both, I ended up having the /etc/init.d/pfilter start/stop/status script do an if else for redhat/mandrake and suse. Actually, the if else looked at the environment and figured out which was appropriate, which ended up working for both systems. There were too many incompatibilities between the two and the rc.d scripts that had to be called. You might want to look at the way I did it in pfilter for ideas.

On Tue, 2004-09-14 at 13:09, Benoit des Ligneris wrote:
* oscar/packages/pfilter/scripts/post_clients
* oscar/packages/pfilter/scripts/post_install
* oscar/lib/OSCAR/MAC.pm
* oscar/lib/OSCAR/Distro.pm
**oscar/lib/OSCAR/SISBuildSetup.pm
*-oscar/scripts/package_config_xmls_to_database
*-oscar/scripts/install_server
*-oscar/packages/pbs/scripts/post_clients
*-oscar/packages/ntpconfig/scripts/post_rpm_install
*-oscar/packages/ntpconfig/scripts/post_server_install
*-oscar/packages/torque/scripts/post_client_rpm_install
*-oscar/packages/disable-services/scripts/disable.client.incoming-mail
*-oscar/packages/disable-services/scripts/enable.client.mail-locally
*-oscar/packages/disable-services/scripts/post_install
*-oscar/packages/disable-services/scripts/post_client_rpm_install
*-oscar/packages/disable-services/scripts/post_server_rpm_install

Potential problem with service : will have to look at the SRPMs
oscar/packages/loghost/RPMS/loghost-1.0-1.noarch.rpm concorde
oscar/packages/sis/RPMS/systemimager-server-3.3.2-1.noarch.rpm concorde
oscar/packages/pfilter/RPMS/pfilter-1.699-1.noarch.rpm concorde
oscar/packages/pfilter/RPMS/pfilter-1.705-1.noarch.rpm concorde


legend :
* : File checked, uses init.d not service
**: File checked and removal of service in order to use directly
    /etc/init.d/$service
*- : chkconfig is used in this file which can be a problem if it 
     does not exists on every distribution ?

Is chkconfig present on SuSe ?
On debian it is "update-rc.d" and I don't know if chkconfig has been
ported.

Should we ban the use of "chkconfig" and use a tool provided by
oscar/lib/OSCAR/Distro.pm ?

Ben

PS : broadband access is cool ;-)

* Jeff Squyres <[EMAIL PROTECTED]> [04-09-14 12:27]:
> I'm a witness -- I saw him say it!
> 
> On Sep 14, 2004, at 12:02 PM, Benoit des Ligneris wrote:
> 
> >Hello,
> >
> >OK. I'm volunteering to remove all reference to the service command in
> >OSCAR and do directly
> >/etc/init.d/$service (start|stop|restart)
> >instead of
> >service $service (start|stop|restart)
> >
> >Ben
> >
> >
> >
> >* Neil Gorsuch <[EMAIL PROTECTED]> [04-09-14 11:47]:
> >>   All of oscar needs to abandon the service command and do:
> >>   /etc/init.d/name [start|stop|whatever]
> >>   instead of:
> >>   service name [start|stop|whatever]
> >>   I found out that on all of the linuxes I looked at, /etc/init.d is 
> >>the
> >>   only  path to the init.d commands scripts that works everywhere, 
> >>it is
> >>   either  a  linked-to  or link-to the directory that has all the 
> >>init.d
> >>   command scripts.
> >>   On Tue, 2004-09-14 at 08:37, Benoit des Ligneris wrote:
> >>
> >>Hello,
> >>
> >>The SuSe support in OSCAR is not official ... yet.
> >>
> >>It is very impressive that you manage to have the wizard running 
> >>(thanks
> >>NCSA folks for this ;-) however the remaining step is a bit 
> >>complicated.
> >>
> >>Can you please post your complete OSCAR version as well as you
> >>oscarinstall.log ?
> >>
> >>As fas as I know, some commands that are heavily in use in OSCAR does
> >>not exists on SuSe, espescially the "service" command that allow to
> >>stop/restart/start a service. This will cause failure in some scripts.
> >>
> >>Another thing is the image building step and that's where you are
> >>blocking right now. As I have already "ported" OSCAR to other disto, I
> >>will try to explain my "methodology" :
> >>
> >>1) Select only the minimal number of packages (only the core packages)
> >>
> >>2) With this limited subset you will have to tweak :
> >>   a- The suse rpmlist (in oscarsample/suse-9.1-i386.rpmlist)
> >>   b- The config.xml of every package you have installed :
> >>        - base/config.xml
> >>        - c3/config.xml
> >>        - oda/config.xml
> >>        - perl-Qt/config.xml
> >>        - sis/config.xml
> >>        - switcher/config.xml
> >>        - sync_files/config.xml
> >>
> >>All the dependencies (in the oscarsample/suse-9.1-i386.rpmlist) have 
> >>to
> >>be solved. A quick way to have a working list is to list the rpm
> >>installed on a given (minimal) system :
> >>rpm -qa --queryformat "%{NAME}\n"|sort > my-list.rpmlist
> >>
> >>Some packages are very distro specific, in this case :
> >>      * perl-Qt : Check that the rpm is working otherwise recompile
> >>
> >>      * switcher : Recompile for SuSe and modify the setup script
> >>
> >>      * base : Mofify the list of prerequisite for SuSe 9.1 (cut & 
> >>paste
> >>      the     <filter distribution='suse' distribution_version='8.1'
> >>      group='oscar_server' /> section to make a
> >>          <filter distribution='suse' distribution_version='9.1'
> >>          group='oscar_server' /> section)
> >>
> >>
> >>3) Once you have a working minimal subset, add one package at a time 
> >>and
> >>   check that it is installing and working corretcly
> >>
> >>All in all, this is really a development task and I would be happy to
> >>help.
> >>
> >>Ben
> >>
> >>PS : I would like to have some input from the NCSA folks, especially
> >>     about the service command and other problems they had with SuSe
> >>     support ?
> >>
> >>* Rajeev Sharma <[EMAIL PROTECTED]> [04-09-14 06:09]:
> >>>>>>Rajeev Sharma 09/14 4:24 pm >>>
> >>>   Hello List,
> >>>
> >>>   I am new to oscar and trying to install it on SUSE Linux 9.1 .
> >>>   I  have installed the oscar server( by running 
> >>>install_cluster.sh) and
> >>>   able to got the Wizard.
> >>>   Till  server Pkgs installation in the wizard, everything went 
> >>>fine but
> >>>   when  i  tried to make the cliebt image , it gave me a long 
> >>>error.(got
> >>>   it from "oscarinstall.log" file).
> >>>   Then  i  tried  to  make  my  own  rpmlist in respect of the pkgs 
> >>>from
> >>>   /tftpboot/rpm but it also didn't work.
> >>>
> >>>   The error it gives, "couldn't find (a long list of pkgs)"...i 
> >>>tried to
> >>>   add and remove the pkgs from the rpmlist file , but it was like a 
> >>>loop
> >>>   an didn't gave me any fruitfull output.
> >>>
> >>>   Is  there  anybody  has  tried to install oscar on any version of 
> >>>SUSE
> >>>   linux.
> >>>   Looking for help :-
> >>>
> >>>   Thanks in advance
> >>>   rajeev
> >>
> >>
> >>
> >>-- 
> >>
> >>Neil Gorsuch <[EMAIL PROTECTED]>
> >>
> >>NCSA
> >>
> >>References
> >>
> >>   1. mailto:[EMAIL PROTECTED]
> >
> >-- 
> >Benoit des Ligneris Ph. D.
> >President de Revolution Linux     http://www.revolutionlinux.com/
> >OSCAR Chair                    http://oscar.openclustergroup.org/
> >Chef de projet EduLinux                  http://www.edulinux.org/
> >
> >
> >-------------------------------------------------------
> >This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
> >Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
> >Camcorder. More prizes in the weekly Lunch Hour Challenge.
> >Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m
> >_______________________________________________
> >Oscar-devel mailing list
> >[EMAIL PROTECTED]
> >https://lists.sourceforge.net/lists/listinfo/oscar-devel
> >
> 
> -- 
> {+} Jeff Squyres
> {+} [EMAIL PROTECTED]
> {+} http://www.lam-mpi.org/
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
> Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
> Camcorder. More prizes in the weekly Lunch Hour Challenge.
> Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m
> _______________________________________________
> Oscar-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/oscar-devel
--
Neil Gorsuch <[EMAIL PROTECTED]>
NCSA

Reply via email to