Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Be quieter when enabling services, but tell the user when it goes wrong | Colin Guthrie | 2014-10-09 | 1 | -1/+6 |
| | |||||
* | Use systemctl enable if preset fails (which it will for sysvinit) | Colin Guthrie | 2014-10-08 | 1 | -1/+2 |
| | |||||
* | Allow add-service to defer to chkconfig when dealing xinetd services | Colin Guthrie | 2014-10-08 | 1 | -1/+3 |
| | |||||
* | Use systemctl preset rather than enable. | Colin Guthrie | 2014-07-27 | 1 | -1/+1 |
| | | | | | | | | | | | This will use the package preset rules rather than hardcoding enabling which allows use to separate policy from action. We should really update msec to write out /etc/systemd/system-preset/*.preset file according to the current system level. This would replace our parsing of /etc/security/msec/server file (which is a symlink) in these scripts and would allow administrators (or just the security level itself) to dictate whether newly installed services are enabled or not when installed. | ||||
* | Fix typo | Colin Guthrie | 2012-09-30 | 1 | -1/+1 |
| | |||||
* | Make the code a little more compact + deal slightly better with ↵ | Colin Guthrie | 2012-09-30 | 1 | -17/+11 |
| | | | | non-releative symlinks in chroots | ||||
* | Mark a fresh install of a systemd service as 'migrated' to avoid subsequent ↵ | Colin Guthrie | 2012-09-30 | 1 | -0/+3 |
| | | | | checks on upgrade. | ||||
* | Trust systemd install rules if avaialble, only then fall back to manual linking | Colin Guthrie | 2012-04-30 | 1 | -3/+4 |
| | |||||
* | Do not allow error status to leak from script. | Colin Guthrie | 2012-04-30 | 1 | -3/+5 |
| | |||||
* | Fix handling of masked and symlinked unit names | Colin Guthrie | 2012-04-29 | 1 | -8/+13 |
| | |||||
* | add-service: on package upgrade, restart all instances of template units. | Colin Guthrie | 2012-04-03 | 1 | -2/+17 |
| | |||||
* | add-service: attempt to migrate template systemd units (foo@.service) ↵ | Colin Guthrie | 2012-04-03 | 1 | -9/+22 |
| | | | | somewhat gracefully. | ||||
* | add-service: Change the systemd unitdir search order to match upstream. | Colin Guthrie | 2012-04-03 | 1 | -8/+8 |
| | |||||
* | Always reload systemd unit cache before attempting to restart units | Colin Guthrie | 2012-03-19 | 1 | -3/+3 |
| | |||||
* | Migrate service enabled/disabled status from sysvinit to systemd on upgrade | Colin Guthrie | 2012-02-16 | 1 | -24/+131 |
| | |||||
* | Silent enable/disable services | Dexter Morgan | 2012-01-19 | 1 | -1/+1 |
| | |||||
* | Add support for systemd .path filesv0.24.5 | Dexter Morgan | 2011-12-13 | 1 | -0/+1 |
| | |||||
* | Ensure we calculate the true systemd unit name. | Colin Guthrie | 2011-11-03 | 1 | -0/+20 |
| | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | Do not assume that the sysvinit script exists. | Colin Guthrie | 2011-10-30 | 1 | -2/+2 |
| | | | | | | 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. | ||||
* | Change how services are handled in systemd.v0.24.20.24.2 | Colin Guthrie | 2011-10-30 | 1 | -20/+18 |
| | | | | | | | | | | | 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. | ||||
* | Remove a split out function which no longer reflected it's name. | Colin Guthrie | 2011-10-30 | 1 | -24/+21 |
| | | | | The function is short enough that splitting it out does not really aid readability | ||||
* | Remove early exit and replace with conditionals to improve readability | Colin Guthrie | 2011-10-30 | 1 | -13/+11 |
| | |||||
* | Extend the msec check to systemd socket units as well as services ones | Colin Guthrie | 2011-10-30 | 1 | -0/+1 |
| | |||||
* | Ensure systemd units are handled automagically from the service name. | Colin Guthrie | 2011-10-30 | 1 | -2/+9 |
| | | | | | | | | | | | 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 | ||||
* | Tabs->Spaces. The latter seems more common, so go with that. | Colin Guthrie | 2011-10-30 | 1 | -32/+32 |
| | |||||
* | Set svn:keywords on the files that use it. | Colin Guthrie | 2011-10-30 | 1 | -1/+1 |
| | |||||
* | Add systemd support ( mdv ) | Dexter Morgan | 2011-10-27 | 1 | -17/+64 |
| | |||||
* | Synthesized commit during git-svn import combining previous Mandriva history ↵ | Mageia SVN-Git Migration | 2011-10-27 | 1 | -1/+1 |
| | | | | | | | | | | | | 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 ------------------------------------------------------------------------ | ||||
* | re-enable running chkconfig for services during package upgrade, all init ↵ | Guillaume Rousse | 2010-01-23 | 1 | -5/+3 |
| | | | | scripts should have been fixed since 2008.1 (and this should also fix #52313) | ||||
* | don't silent stderr output | Guillaume Rousse | 2009-03-29 | 1 | -1/+1 |
| | |||||
* | * workaround services "disabled" (butchered?) by default getting disabled on | Pascal Rigaux | 2008-04-02 | 1 | -3/+6 |
| | | | | | upgrade (#39720) | ||||
* | don't handle portmap specific case in a generic service handling method | Guillaume Rousse | 2007-11-22 | 1 | -8/+0 |
| | |||||
* | Patch by Ian D. Allen to handle rare case when a service name appears several | Rafael Garcia-Suarez | 2006-02-09 | 1 | -2/+6 |
| | | | | | times in rc3.d (bug 12856) | ||||
* | don't add the service to all the profiles in upgrade mode. | Frederic Lepied | 2005-09-20 | 1 | -1/+1 |
| | |||||
* | test /etc/security/msec/server wihout taking care of $SECURE_LEVEL (bug #18409). | Frederic Lepied | 2005-09-10 | 1 | -23/+34 |
| | | | | | add by default the service to all the profiles if ADD_SERVICES_TO_CURRENT_PROFILE_ONLY isn't set in /etc/sysconfig/system. | ||||
* | add the service again on upgrade if the service is activated | Frederic Lepied | 2004-09-23 | 1 | -3/+16 |
| | |||||
* | corrected behaviour when SECURE_LEVEL isn't set | Frederic Lepied | 2002-12-22 | 1 | -1/+1 |
| | |||||
* | do the security stuff | Frederic Lepied | 2002-09-06 | 1 | -1/+31 |
| | |||||
* | restart services that depend of portmap | Frederic Lepied | 2002-08-01 | 1 | -0/+8 |
| | |||||
* | Initial revisionV00topic/Init | Frederic Lepied | 2002-07-09 | 1 | -0/+30 |