/[soft]/rpm/rpm-helper
ViewVC logotype

Log of /rpm/rpm-helper

View Directory Listing Directory Listing


Sticky Revision:

Revision 2971 - Directory Listing
Modified Thu Feb 16 14:37:20 2012 UTC (12 years, 2 months ago) by colin
version 0.24.6

Revision 2970 - Directory Listing
Modified Thu Feb 16 14:36:46 2012 UTC (12 years, 2 months ago) by colin
version 0.24.6

Revision 2969 - Directory Listing
Modified Thu Feb 16 14:36:41 2012 UTC (12 years, 2 months ago) by colin
0.25.6

Revision 2968 - Directory Listing
Modified Thu Feb 16 14:35:13 2012 UTC (12 years, 2 months ago) by colin
Tiny tidy-up of NEWS file

Revision 2967 - Directory Listing
Modified Thu Feb 16 14:28:32 2012 UTC (12 years, 2 months ago) by colin
Fix dist bug

Revision 2966 - Directory Listing
Modified Thu Feb 16 14:14:41 2012 UTC (12 years, 2 months ago) by colin
Migrate service enabled/disabled status from sysvinit to systemd on upgrade

Revision 2700 - Directory Listing
Modified Thu Jan 19 15:13:00 2012 UTC (12 years, 3 months ago) by dmorgan
Silent enable/disable services

Revision 2552 - Directory Listing
Modified Sun Jan 1 11:37:37 2012 UTC (12 years, 3 months ago) by dmorgan
Revert wrong change in rpm-helper/Makefile

Revision 2551 - Directory Listing
Modified Sun Jan 1 11:27:15 2012 UTC (12 years, 3 months ago) by dmorgan
Add spec-helper

Revision 2405 - Directory Listing
Modified Tue Dec 13 16:01:24 2011 UTC (12 years, 4 months ago) by dmorgan
version 0.24.5

Revision 2404 - Directory Listing
Modified Tue Dec 13 16:01:07 2011 UTC (12 years, 4 months ago) by dmorgan
Add support for systemd .path files

Revision 2125 - Directory Listing
Modified Thu Nov 3 11:52:04 2011 UTC (12 years, 5 months ago) by colin
version 0.24.4

Revision 2124 - Directory Listing
Modified Thu Nov 3 11:51:11 2011 UTC (12 years, 5 months ago) by colin
Brown-paper-bag: Add missing script to Makefile.

Revision 2123 - Directory Listing
Modified Thu Nov 3 11:44:59 2011 UTC (12 years, 5 months ago) by colin
Tagging happens automatically on 'make dist'. Fix up manual tag names.

Revision 2122 - Directory Listing
Modified Thu Nov 3 11:41:35 2011 UTC (12 years, 5 months ago) by colin
version 0.24.3

Revision 2121 - Directory Listing
Modified Thu Nov 3 11:41:14 2011 UTC (12 years, 5 months ago) by colin
Bump version for release.

Revision 2120 - Directory Listing
Modified Thu Nov 3 10:08:04 2011 UTC (12 years, 5 months ago) by colin
Add a new service helper for postun.

At the moment this is only used to reload systemd if it's running.

Revision 2119 - Directory Listing
Modified Thu Nov 3 09:45:10 2011 UTC (12 years, 5 months ago) by colin
Update NEWS

Revision 2118 - Directory Listing
Modified Thu Nov 3 09:40:42 2011 UTC (12 years, 5 months ago) by colin
Tag the 0.24.2 Release

Revision 2117 - Directory Listing
Modified Thu Nov 3 09:38:38 2011 UTC (12 years, 5 months ago) by colin
Create tags folder for releases

Revision 2116 - Directory Listing
Modified Thu Nov 3 09:33:21 2011 UTC (12 years, 5 months ago) by colin
Ensure we calculate the true systemd unit name.

When passing just a sysvinit name, we synthesise a systemd unit name via
the amazingly cunning and subtle technique of adding '.service' on to the
name.

This is very effective for referring to units for most commands as even if
an actual unit file of this name exists systemd might be providing the
unit for this service via a different name, but just symlinking to the
sysvinit name in order to prevent the sysvinit script from firing.

This is done with e.g. the dm and networkmanager services.

When using the symlinked name, systemctl will refuse to enable or disable
the unit (see https://bugs.mageia.org/show_bug.cgi?id=3188) and this is
expected behaviour.

Thus we use readlink to attempt to resolve the link to a real name.



Revision 2113 - Directory Listing
Modified Sun Oct 30 20:20:46 2011 UTC (12 years, 5 months ago) by colin
Do not assume that the sysvinit script exists.

It is possible that we call this helper when only a systemd unit exists
and thus it makes sense to protect against calling chkconfig and friends
when this is the case.

Revision 2112 - Directory Listing
Modified Sun Oct 30 15:08:02 2011 UTC (12 years, 5 months ago) by colin
Change how services are handled in systemd.

This ensures that services are started/stopped in the most appropriate
way depending on what init system is being used.

Also when upgrading a service, ensure it is properly restarted even
when using systemd (assuming it is currently running).

Testing these scripts without actually installing/uninstalling package
may result in the sysvinit scripts being deleted so be careful.

Revision 2111 - Directory Listing
Modified Sun Oct 30 14:47:55 2011 UTC (12 years, 5 months ago) by colin
Remove a split out function which no longer reflected it's name.

The function is short enough that splitting it out does not really aid readability

Revision 2110 - Directory Listing
Modified Sun Oct 30 14:45:30 2011 UTC (12 years, 5 months ago) by colin
Remove early exit and replace with conditionals to improve readability

Revision 2109 - Directory Listing
Modified Sun Oct 30 14:42:38 2011 UTC (12 years, 5 months ago) by colin
Extend the msec check to systemd socket units as well as services ones

Revision 2108 - Directory Listing
Modified Sun Oct 30 14:41:47 2011 UTC (12 years, 5 months ago) by colin
Ensure systemd units are handled automagically from the service name.

The Mandriva code required that all packages were updated to deal with
systemd units whenever they are provided. While packages generally need
updated to include new units, it's also something that requires a lot of
work and thus in the short term we should deal with it with minimal
changes.

By always seting the units variable, some checks become redundant so
skip them or replace with a suitable alternative

Revision 2107 - Directory Listing
Modified Sun Oct 30 14:34:47 2011 UTC (12 years, 5 months ago) by colin
Tabs->Spaces. The latter seems more common, so go with that.

Revision 2106 - Directory Listing
Modified Sun Oct 30 14:32:41 2011 UTC (12 years, 5 months ago) by colin
Set svn:keywords on the files that use it.

Revision 2090 - Directory Listing
Modified Fri Oct 28 08:05:20 2011 UTC (12 years, 5 months ago) by dmorgan
Remove mandriva support

Revision 2083 - Directory Listing
Modified Thu Oct 27 22:47:46 2011 UTC (12 years, 6 months ago) by dmorgan
Add systemd support ( mdv )

Revision 2081 - Directory Listing
Added Thu Oct 27 22:29:24 2011 UTC (12 years, 6 months ago) by dmorgan
import rpm-helper

  ViewVC Help
Powered by ViewVC 1.1.30