aboutsummaryrefslogtreecommitdiffstats
path: root/add-service
Commit message (Collapse)AuthorAgeFilesLines
* add-service: ShellCheck: fix loads of shellcheck warningsOlav Vitters2020-07-251-40/+40
|
* correctly check if systemd has bootedOlav Vitters2020-07-251-2/+2
|
* Deal with xinetd.d services properly (e.g. sane mga#14397)Colin Guthrie2014-10-281-3/+3
|
* Be quieter when enabling services, but tell the user when it goes wrongColin Guthrie2014-10-091-1/+6
|
* Use systemctl enable if preset fails (which it will for sysvinit)Colin Guthrie2014-10-081-1/+2
|
* Allow add-service to defer to chkconfig when dealing xinetd servicesColin Guthrie2014-10-081-1/+3
|
* Use systemctl preset rather than enable.Colin Guthrie2014-07-271-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 typoColin Guthrie2012-09-301-1/+1
|
* Make the code a little more compact + deal slightly better with ↵Colin Guthrie2012-09-301-17/+11
| | | | non-releative symlinks in chroots
* Mark a fresh install of a systemd service as 'migrated' to avoid subsequent ↵Colin Guthrie2012-09-301-0/+3
| | | | checks on upgrade.
* 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
|
* Fix handling of masked and symlinked unit namesColin Guthrie2012-04-291-8/+13
|
* add-service: on package upgrade, restart all instances of template units.Colin Guthrie2012-04-031-2/+17
|
* add-service: attempt to migrate template systemd units (foo@.service) ↵Colin Guthrie2012-04-031-9/+22
| | | | somewhat gracefully.
* add-service: Change the systemd unitdir search order to match upstream.Colin Guthrie2012-04-031-8/+8
|
* Always reload systemd unit cache before attempting to restart unitsColin Guthrie2012-03-191-3/+3
|
* Migrate service enabled/disabled status from sysvinit to systemd on upgradeColin Guthrie2012-02-161-24/+131
|
* Silent enable/disable servicesDexter Morgan2012-01-191-1/+1
|
* Add support for systemd .path filesv0.24.5Dexter Morgan2011-12-131-0/+1
|
* Ensure we calculate the true systemd unit name.Colin Guthrie2011-11-031-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 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-301-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 Guthrie2011-10-301-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 readabilityColin Guthrie2011-10-301-13/+11
|
* Extend the msec check to systemd socket units as well as services onesColin Guthrie2011-10-301-0/+1
|
* Ensure systemd units are handled automagically from the service name.Colin Guthrie2011-10-301-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 Guthrie2011-10-301-32/+32
|
* Set svn:keywords on the files that use it.Colin Guthrie2011-10-301-1/+1
|
* Add systemd support ( mdv )Dexter Morgan2011-10-271-17/+64
|
* 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 ------------------------------------------------------------------------
* re-enable running chkconfig for services during package upgrade, all init ↵Guillaume Rousse2010-01-231-5/+3
| | | | scripts should have been fixed since 2008.1 (and this should also fix #52313)
* don't silent stderr outputGuillaume Rousse2009-03-291-1/+1
|
* * workaround services "disabled" (butchered?) by default getting disabled onPascal Rigaux2008-04-021-3/+6
| | | | | upgrade (#39720)
* don't handle portmap specific case in a generic service handling methodGuillaume Rousse2007-11-221-8/+0
|
* Patch by Ian D. Allen to handle rare case when a service name appears severalRafael Garcia-Suarez2006-02-091-2/+6
| | | | | times in rc3.d (bug 12856)
* don't add the service to all the profiles in upgrade mode.Frederic Lepied2005-09-201-1/+1
|
* test /etc/security/msec/server wihout taking care of $SECURE_LEVEL (bug #18409).Frederic Lepied2005-09-101-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 activatedFrederic Lepied2004-09-231-3/+16
|
* corrected behaviour when SECURE_LEVEL isn't setFrederic Lepied2002-12-221-1/+1
|
* do the security stuffFrederic Lepied2002-09-061-1/+31
|
* restart services that depend of portmapFrederic Lepied2002-08-011-0/+8
|
* Initial revisionV00topic/InitFrederic Lepied2002-07-091-0/+30