| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
The function is short enough that splitting it out does not really aid readability
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
with Magiea.
This commit consitsts of the following subversion commits:
------------------------------------------------------------------------
r2081 | dmorgan | 2011-10-27 23:29:24 +0100 (Thu, 27 Oct 2011) | 1 line
import rpm-helper
------------------------------------------------------------------------
|
|
|
|
| |
scripts should have been fixed since 2008.1 (and this should also fix #52313)
|
| |
|
|
|
|
|
| |
upgrade (#39720)
|
| |
|
|
|
|
|
| |
times in rc3.d (bug 12856)
|
| |
|
|
|
|
|
| |
add by default the service to all the profiles if ADD_SERVICES_TO_CURRENT_PROFILE_ONLY isn't set in /etc/sysconfig/system.
|
| |
|
| |
|
| |
|
| |
|
|
|