Mailinglist Archive: yast-commit (939 mails)

< Previous Next >
[yast-commit] r53003 - in /trunk/samba-client: VERSION package/yast2-samba-client.changes src/SambaWinbind.pm
  • From: jsuchome@xxxxxxxxxxxxxxxx
  • Date: Thu, 06 Nov 2008 15:29:54 -0000
  • Message-id: <20081106152954.7ADCF338E0@xxxxxxxxxxxxxxxx>
Author: jsuchome
Date: Thu Nov 6 16:29:54 2008
New Revision: 53003

URL: http://svn.opensuse.org/viewcvs/yast?rev=53003&view=rev
Log:
- note services that should be restarted after installation
(bnc#395402)
- 2.17.11


Modified:
trunk/samba-client/VERSION
trunk/samba-client/package/yast2-samba-client.changes
trunk/samba-client/src/SambaWinbind.pm

Modified: trunk/samba-client/VERSION
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/samba-client/VERSION?rev=53003&r1=53002&r2=53003&view=diff
==============================================================================
--- trunk/samba-client/VERSION (original)
+++ trunk/samba-client/VERSION Thu Nov 6 16:29:54 2008
@@ -1 +1 @@
-2.17.10
+2.17.11

Modified: trunk/samba-client/package/yast2-samba-client.changes
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/samba-client/package/yast2-samba-client.changes?rev=53003&r1=53002&r2=53003&view=diff
==============================================================================
--- trunk/samba-client/package/yast2-samba-client.changes (original)
+++ trunk/samba-client/package/yast2-samba-client.changes Thu Nov 6 16:29:54
2008
@@ -1,4 +1,11 @@
-------------------------------------------------------------------
+Thu Nov 6 16:23:06 CET 2008 - jsuchome@xxxxxxx
+
+- note services that should be restarted after installation
+ (bnc#395402)
+- 2.17.11
+
+-------------------------------------------------------------------
Wed Oct 29 14:06:36 CET 2008 - jsuchome@xxxxxxx

- fixed reading /etc/security/pam_winbind.conf (bnc#433210)

Modified: trunk/samba-client/src/SambaWinbind.pm
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/samba-client/src/SambaWinbind.pm?rev=53003&r1=53002&r2=53003&view=diff
==============================================================================
--- trunk/samba-client/src/SambaWinbind.pm (original)
+++ trunk/samba-client/src/SambaWinbind.pm Thu Nov 6 16:29:54 2008
@@ -18,11 +18,13 @@
our %TYPEINFO;

BEGIN{
+YaST::YCP::Import("Directory");
YaST::YCP::Import("Nsswitch");
YaST::YCP::Import("Pam");
YaST::YCP::Import("PackageSystem");
YaST::YCP::Import("Progress");
YaST::YCP::Import("Service");
+YaST::YCP::Import("Stage");
YaST::YCP::Import("SCR");

YaST::YCP::Import("SambaConfig");
@@ -92,13 +94,31 @@
if (!$write_only && PackageSystem->Installed ("nscd")) {
SCR->Execute (".target.bash", "/usr/sbin/nscd -i passwd");
SCR->Execute (".target.bash", "/usr/sbin/nscd -i group");
+ Service->RunInitScript ("nscd", "try-restart");
}
- # restart zmd (#174589) FIXME this should be elsewhere
+ # restart zmd (#174589)
if (!$write_only && PackageSystem->Installed ("zmd") &&
Service->Status ("novell-zmd") == 0)
{
Service->RunInitScript ("novell-zmd", "try-restart");
}
+ # after finish of 2nd stage, restart running services (bnc#395402)
+ if ($on && Stage->cont ())
+ {
+ my @services = ();
+ foreach my $service ("dbus", "haldaemon") {
+ push @services, $service if (Service->Status ($service) == 0);
+ };
+ my $size = @services;
+ if (@services)
+ {
+ SCR->Write (".target.string",
+ Directory->vardir () . "/restart_services",
+ join ("\n", @services) . "\n"
+ );
+ }
+ }
+
return $ret;
}


--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages