aboutsummaryrefslogtreecommitdiffstats
path: root/del-service
Commit message (Collapse)AuthorAgeFilesLines
* Be quieter when disabling services on uninstall too.Colin Guthrie2014-10-091-1/+1
| | | | | | | | We don't really care about leaving left over cruft here as the package is getting removed. Dangling symlinks and such like can just be left there without getting in the way too much. (and this should be rare anyway)
* Drop hacky workaround for systemd reload on sysv initscript package removalColin Guthrie2014-07-271-8/+0
| | | | | | | | | | | | | | Due to the fact that systemd is reload by chkconfig, it will still think the service exists. A hacky patch was included which rm'ed the sysvinit script and then reloaded systemd again, which worked but caused errors from rpm when removing packages complaining that a file it controlled did not exist (which was correct). It's actually much better to fix this with a filetrigger. We actually already ship a filetrigger that performs appropriate daemon-reloads, but it only matched on native units. Simply changing the regexp to include sysvinit script paths too should fix the problem equally well, but in a much less hacky way.
* Fix typoColin Guthrie2012-09-301-1/+1
|
* Sync del-service unit finding code with add-service.Colin Guthrie2012-09-301-18/+34
| | | | | This is actually where the non-relative symlinks in chroots might occur as technically all packges will only include relative symlinks.
* Only run chkconfig --del when the initscript exists (mga#7611)Colin Guthrie2012-09-301-1/+1
|
* Silent enable/disable servicesDexter Morgan2012-01-191-1/+1
|
* Ensure we calculate the true systemd unit name.Colin Guthrie2011-11-031-1/+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.
* Change how services are handled in systemd.v0.24.20.24.2Colin Guthrie2011-10-301-7/+10
| | | | | | | | | | | 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.
* Ensure systemd units are handled automagically from the service name.Colin Guthrie2011-10-301-3/+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 Guthrie2011-10-301-11/+11
|
* Set svn:keywords on the files that use it.Colin Guthrie2011-10-301-1/+1
|
* Add systemd support ( mdv )Dexter Morgan2011-10-271-7/+42
|
* Synthesized commit during git-svn import combining previous Mandriva history ↵Mageia SVN-Git Migration2011-10-271-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 ------------------------------------------------------------------------
* do not stop service during installOlivier Blin2009-10-301-1/+3
| | | | | | (or else shorewall will be stopped because moved in another package, making the install hang for a while)
* don't silent stderr outputGuillaume Rousse2009-03-291-1/+1
|
* MandrivaFrederic Lepied2005-09-101-1/+1
|
* Initial revisionV00topic/InitFrederic Lepied2002-07-091-0/+27