Commit done :-)

Now, to restart a service:

use OSCAR::SystemServices
system_service(OSCAR::SystemServicesDefs::SI_RSYNC(),OSCAR::SystemServicesDefs::RESTART())

To enable or disable multiple services:
enable_system_services(@services)
disable_system_services(@services)

example:
disable_system_services( (OSCAR::SystemServicesDefs::SI_FLAMETHROWER(),
                                  OSCAR::SystemServicesDefs::SI_BITTORRENT()) )


See SystemSettingsDefs.pm, OS_Detect/* and OS_Settings/* for definitions and 
configurations.

Now porting MAC.pm

Regards,

Olivier.
--
   Olivier LAHAYE
   CEA DRT/LIST/DM2I/DIR
________________________________
De : DongInn Kim [di...@cs.indiana.edu]
Date d'envoi : lundi 14 octobre 2013 17:23
À : oscar-devel@lists.sourceforge.net
Objet : Re: [Oscar-devel] RE : service management (systemd) code update in 
progress...

Does oscar-packager have the hard-code of the trunk repository path? If not, I 
do not think that branching trunk would not break anything.
Anyway, since we do not have any other stuff going on, can you try to commit it 
to trunk and see what happens?

Regards,

--
- DongInn

On Oct 14, 2013, at 11:10 AM, LAHAYE Olivier 
<olivier.lah...@cea.fr<mailto:olivier.lah...@cea.fr>> wrote:


Hi DongInn,

Do you think that oscar-packager wan work with a quick branch without having to 
recreate many configs?

I'm not afraid in messing up the SVN, but in fact there are many many places 
were:
- system_service (from SystemService.pm is used
- /etc/init.d and /etc/rc.d/init.d path are used, and script run attempts are 
made.
- /sbin/chkconfig or update-rc.d are called

These fixes need to be done in oscar libs, oscar opkgs scripts and in some 
packages in pkgsrc, and thus it takes time (but it's required to have code 
working on systemd based distros like fedora-17+.

If I'm correct, it should work without breaking things during migration as I'm 
using for example dhcp_service instead of dhcp_daemon (OS_Settings/default), 
thus code that needs the full path is still using dhcp_daemon, and new code 
which doesn't require the full patch is using dhcp_service.

The actual situation is that distros like fedora-17+ (and maybe others) don't 
work with oscar eventhough all packages can be built.
=> Many /etc/init.d/<script> missing => failures in OSCAR.
=> ifconfig output changed => failures in OSCAR.

Committing now would help separate commits in logical changes (OS_Settings 
enhancements, OS_Detect enhancements, SystemService enhancements, .... etc.

So if you're ok with the commit, I can do it now, er tomorrow morning (french 
time).

Best regards,

Olivier.

--
   Olivier LAHAYE
   CEA DRT/LIST/DM2I/DIR
________________________________
De : DongInn Kim [di...@cs.indiana.edu<mailto:di...@cs.indiana.edu>]
Date d'envoi : lundi 14 octobre 2013 15:11
À : oscar-devel@lists.sourceforge.net<mailto:oscar-devel@lists.sourceforge.net>
Objet : Re: [Oscar-devel] service management (systemd) code update in 
progress...

Hi Olivier,

Why don't we have a quick branch and then play it that way?

I believe that there are not many changes on the different places in trunk but 
if you worry about messing up trunk, we can play with the branch.

Regards,

--
- DongInn

On Oct 14, 2013, at 6:12 AM, LAHAYE Olivier 
<olivier.lah...@cea.fr<mailto:olivier.lah...@cea.fr>> wrote:


Dear all,

I'm still working on upgrading the code to use OS_Detect, OS_Settings and 
SystemService when needed, still lot of work; be patient. For the moment, I do 
not commit. Should I (then we should not build repos)?

I've also enhanced  OS_Settings so now we know where dhcp leases are and dhcp 
config files are for example. No more repeated lines of tests....

Regards,

Olivier.

--
   Olivier LAHAYE
   CEA DRT/LIST/DM2I/DIR
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk_______________________________________________
Oscar-devel mailing list
Oscar-devel@lists.sourceforge.net<mailto:Oscar-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/oscar-devel

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk_______________________________________________
Oscar-devel mailing list
Oscar-devel@lists.sourceforge.net<mailto:Oscar-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/oscar-devel

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Oscar-devel mailing list
Oscar-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to