aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use systemctl enable if preset fails (which it will for sysvinit)Colin Guthrie2014-10-082-1/+4
|
* Allow add-service to defer to chkconfig when dealing xinetd servicesColin Guthrie2014-10-081-1/+3
|
* build-sys: Fix clean rules for tarball extensionColin Guthrie2014-08-191-1/+1
|
* New version: 0.24.12v0.24.12Colin Guthrie2014-07-272-1/+2
|
* Switch to git tagging in MakefileColin Guthrie2014-07-271-4/+3
|
* Use systemctl preset rather than enable.Colin Guthrie2014-07-272-1/+2
| | | | | | | | | | | 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.
* Drop hacky workaround for systemd reload on sysv initscript package removalColin Guthrie2014-07-272-8/+2
| | | | | | | | | | | | | | 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.
* Drop systemd migration scripts we never used.Colin Guthrie2014-07-275-105/+3
|
* New release: 0.24.11v0.24.11Colin Guthrie2012-09-302-1/+2
|
* Fix NEWS (my editor was somehow scrolled down past the first line and I ↵Colin Guthrie2012-09-301-3/+4
| | | | didn't see the release marker (*sigh*)
* Switch to xz archiveColin Guthrie2012-09-301-2/+1
|
* Fix typoColin Guthrie2012-09-302-2/+2
|
* 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.
* Make the code a little more compact + deal slightly better with ↵Colin Guthrie2012-09-302-17/+12
| | | | non-releative symlinks in chroots
* Mark a fresh install of a systemd service as 'migrated' to avoid subsequent ↵Colin Guthrie2012-09-302-0/+5
| | | | checks on upgrade.
* Update NEWSColin Guthrie2012-09-301-0/+1
|
* Only run chkconfig --del when the initscript exists (mga#7611)Colin Guthrie2012-09-301-1/+1
|
* *sigh* Forgot NEWS in last commit/version bump :(Colin Guthrie2012-04-301-0/+4
| | | | | | One more change before final release likely still needed to deal with package renames gracefully (httpd, mariadb being prime examples) so there will likely still be one more release.
* 0.24.10v0.24.10Colin Guthrie2012-04-301-1/+1
|
* Trust systemd install rules if avaialble, only then fall back to manual linkingColin Guthrie2012-04-301-3/+4
|
* Do not allow error status to leak from script.Colin Guthrie2012-04-301-3/+5
|
* 0.24.9v0.24.9Colin Guthrie2012-04-291-1/+1
|
* Fix handling of masked and symlinked unit namesColin Guthrie2012-04-292-8/+16
|
* bump vesionv0.24.8Colin Guthrie2012-04-032-1/+2
|
* add-service: on package upgrade, restart all instances of template units.Colin Guthrie2012-04-032-2/+19
|
* add-service: attempt to migrate template systemd units (foo@.service) ↵Colin Guthrie2012-04-032-9/+25
| | | | somewhat gracefully.
* add-service: Change the systemd unitdir search order to match upstream.Colin Guthrie2012-04-032-9/+10
|
* Fix NEWS (forgot to press ctrl+s before commit... sigh)Colin Guthrie2012-03-191-1/+1
|
* Always reload systemd unit cache before attempting to restart unitsColin Guthrie2012-03-192-3/+5
|
* bump releasev0.24.7Guillaume Rousse2012-03-122-1/+5
|
* executable bitGuillaume Rousse2012-03-121-0/+0
|
* convert to utf8Guillaume Rousse2012-03-121-1/+1
|
* fix documentation: facility is mandatoryGuillaume Rousse2012-03-101-4/+3
|
* actually, we don't care about sysklogd at all anymoreGuillaume Rousse2012-03-083-75/+4
|
* rsyslog support has superseded syslog-ng support since quite a long timeGuillaume Rousse2012-03-081-2/+2
|
* 0.25.6Colin Guthrie2012-02-162-1/+2
|
* Tiny tidy-up of NEWS fileColin Guthrie2012-02-161-6/+5
|
* Fix dist bugColin Guthrie2012-02-161-2/+2
|
* Migrate service enabled/disabled status from sysvinit to systemd on upgradeColin Guthrie2012-02-164-27/+148
|
* Silent enable/disable servicesDexter Morgan2012-01-193-2/+5
|
* Revert wrong change in rpm-helper/MakefileDexter Morgan2012-01-011-1/+1
|
* Add spec-helperDexter Morgan2012-01-011-1/+1
|
* Add support for systemd .path filesv0.24.5Dexter Morgan2011-12-133-1/+4
|
* Brown-paper-bag: Add missing script to Makefile.v0.24.4Colin Guthrie2011-11-032-2/+6
|
* Bump version for release.v0.24.3Colin Guthrie2011-11-031-1/+1
|
* Add a new service helper for postun.Colin Guthrie2011-11-033-0/+36
| | | | At the moment this is only used to reload systemd if it's running.
* Update NEWSColin Guthrie2011-11-031-0/+11
|
* Ensure we calculate the true systemd unit name.Colin Guthrie2011-11-032-1/+40
| | | | | | | | | | | | | | | | | | | | | 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 Guthrie2011-10-301-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.2Colin Guthrie2011-10-302-27/+28
| | | | | | | | | | | 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.