summaryrefslogtreecommitdiffstats
path: root/lib/puppet/provider/service
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix #2640 - Daemontools and Runit were not creating the enable symlinkBrice Figureau2009-09-162-13/+10
| | | | | | | | Due to an incorrect tests, those providers weren't enabling themselves when starting, thus failing to create the symlink necessary for them to run. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* This further normalizes the handling of init-style services (includingMarkus Roberts2009-09-053-58/+36
| | | | | | | | | the redhat "service" wrapper script). Removes special case handling of non-zero exit code in redhat (base already did this) and centralizes scattered @resource[:has_____] checks. Tests that proper versions of each are called and one level of fallbacks. Signed-off-by: Markus Roberts <Markus@reality.com>
* Combined fix for #2525, #2552 -- RedHat service issuesMarkus Roberts2009-09-051-1/+9
| | | | | | | | | This patch normalizes the structure of the RH service routines which should clear up any lingering issues; xxxcmd routines always return an appropriate array, while the coresponding routines (status/restart/ etc.) either call super or take the needed actions. Signed-off-by: Markus Roberts <markus@phage.local>
* Fixes #2581. Use new 10.6 global launchd overrides file for service ↵Nigel Kersten2009-09-031-10/+82
| | | | status/enabled
* Fixes #2513. debian service provider now uses invoke-rc.d to determine ↵Nigel Kersten2009-08-181-11/+19
| | | | enabled? status
* Fixed #2530 - Fixed status setting in the SMF providerJames Turnbull2009-08-151-1/+1
|
* Fixed #2525 - Wrong method being overridden in Red Hat servicesJames Turnbull2009-08-111-1/+1
|
* Updated fix for #2481James Turnbull2009-08-051-3/+5
|
* Revert "Fxied #2481 - Added status and restart overrides for Red Hat service ↵James Turnbull2009-08-051-4/+4
| | | | | | provider." This reverts commit 967eb9f52938d8849b99686bf2c0b9da9a183399.
* Fxied #2481 - Added status and restart overrides for Red Hat service provider.James Turnbull2009-08-031-4/+4
|
* Fix #2448 - fix the broken runit provider and testsBrice Figureau2009-07-291-0/+10
| | | | | | | The runit provider was broken when the daemontools provider was enhanced.This patch aims to fix this. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* Fixed #579 - puppet should try to clear solaris 10 services in maintenance stateJames Turnbull2009-07-161-1/+8
|
* Fixing #2197 - daemontools tests now passLuke Kanies2009-06-261-18/+36
| | | | | | | This actually involved a bit of rewriting of the code, but the code's simpler now, too. Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixed #2087 and refactored the code that gets the smf service stateMartin Englund2009-06-261-31/+19
|
* Removed extra whitespace from end of linesIan Taylor2009-06-067-30/+30
|
* Changed indentation to be more consistent with style guide (4 spaces per level)Ian Taylor2009-06-068-58/+58
|
* Changed tabs to spaces without interfering with indentation or alignmentIan Taylor2009-06-061-1/+1
|
* Fixes #2172 - service provider for gentoo fails with ambiguous suffixesJames Turnbull2009-04-241-1/+1
|
* SMF import support working and documentation updateBryan Allen2009-04-241-0/+20
|
* Fixes #2145 and #2146Bryan Allen2009-04-241-37/+56
| | | | | Adds manifest param for service type, defines a command or manifest to set up a service Add service setup (import) support
* Merge branch '0.24.x'Luke Kanies2009-04-022-5/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: bin/ralsh lib/puppet/executables/client/certhandler.rb lib/puppet/parser/functions/versioncmp.rb lib/puppet/parser/resource/reference.rb lib/puppet/provider/augeas/augeas.rb lib/puppet/provider/nameservice/directoryservice.rb lib/puppet/provider/ssh_authorized_key/parsed.rb lib/puppet/type.rb lib/puppet/type/file/checksum.rb spec/integration/defaults.rb spec/integration/transaction/report.rb spec/unit/executables/client/certhandler.rb spec/unit/indirector/ssl_rsa/file.rb spec/unit/node/catalog.rb spec/unit/provider/augeas/augeas.rb spec/unit/rails.rb spec/unit/type/ssh_authorized_key.rb spec/unit/type/tidy.rb test/executables/filebucket.rb test/executables/puppetbin.rb
| * Fixed #2026 - Red Hat ignoring stop methodJames Turnbull2009-03-071-4/+4
| |
| * Fixed #2025 - gentoo service provider handle only default init levelJames Turnbull2009-02-271-1/+1
| |
* | Fixed #1849 - Ruby 1.9 portability: `when' doesn't like colons, replace with ↵James Turnbull2009-02-262-8/+8
|/ | | | semicolons
* Fix launchd service provider so it is backwards compatible with OS X 10.4 as ↵Nigel Kersten2009-02-141-4/+13
| | | | | | well Clean up fix to launchd service provider to be more concise
* Updated up2date and service confines to add support for Oracle EL and VMJames Turnbull2009-02-131-1/+1
|
* Documentation fixesJames Turnbull2008-12-1310-66/+90
|
* Simplify launchd service provider and add testsNigel Kersten2008-12-011-18/+24
|
* Documentation fix for runit providerJames Turnbull2008-11-281-3/+5
|
* Documentation fix for daemontools providerJames Turnbull2008-11-281-3/+4
|
* Fixed #1776 - Trivial fix for gentoo service providerJames Turnbull2008-11-281-1/+1
|
* launchd service providerNigel Kersten2008-11-262-1/+189
|
* Fix the init service type to cope with an array for defpath and if defpath ↵Nigel Kersten2008-11-191-17/+23
| | | | does not exist
* Fix #1740 - Daemontools and Runit is not ReST compliantBrice Figureau2008-11-112-31/+48
|
* Fixed #1620 - Add 'sles' to Puppet confines when 'suse' is usedJames Turnbull2008-10-011-1/+1
|
* Fixed #1609 - Added confines for the Gentoo, FreeBSD and SMF (Solaris) ↵James Turnbull2008-09-253-0/+6
| | | | service providers
* Fixed #1607 - Added ubuntu to defaultfor for Debian service providerJames Turnbull2008-09-251-1/+1
|
* Runit service providerBrice Figureau2008-08-291-0/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This provider manages daemons running supervised by Runit[1]. It tries to detect the service directory, with by order of preference: * /service * /var/service * /etc/service The daemon directory should be placed in a directory that can be by default in: * /etc/sv * /var/lib/service or this can be overriden in the service resource parameters: service { "myservice": provider => "runit", path => "/path/to/daemons"; } This provider supports out of the box: * start/stop * enable/disable * restart * status [1]: http://smarden.sunsite.dk/runit/
* Daemontools service providerBrice Figureau2008-08-291-0/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | This provider manages daemons running supervised under D.J.Bernstein daemontools. It tries to detect the service directory, with by order of preference: * /service * /etc/service * /var/lib/svscan The daemon directory should be placed in a directory that can be by default in: * /var/lib/service * /etc or this can be overriden in the service resource parameters: service { "myservice": provider => "daemontools", path => "/path/to/daemons"; } This provider supports out of the box: * start/stop (mapped to enable/disable) * enable/disable * restart * status Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* Fixes #1445 and #1426James Turnbull2008-07-221-1/+6
|
* Fix Ticket 1426 - services on redhat are restarted againJames Turnbull2008-07-171-2/+10
| | | | | as far I see there have been a regression while refactoring the redhat service provider to user /sbin/service. This commit fixes this bug (1426) and service restarts are working again on redhat based systems. There are no tests, as I couldn't figure out how that should be tested. It seems that some restart logic is already tested, however it looks like not every single kind of provider is covered by tests, nor I see at the moment how I could do that.
* Fixed #1369 - the init service provider now supports HP-UX.Luke Kanies2008-06-161-0/+2
| | | | | | I've only added an integration test for the provider, since that's all I've changed; none of the service providers have rspec tests yet.
* Fix for #1219James Turnbull2008-05-151-3/+1
| | | | | | | | | | | Instead of deleting the init scripts (with --del) we should simply disable it with chkconfig service off, and respectfully do the same for enable => true; Updated CHANGELOG Fix for #1219. Instead of deleting the init scripts (with --del) we should simply disable it with chkconfig service off, and respectfully do the same for enable => true;
* Fixed #1196 - added /sbin/service support for the redhat service provider + ↵James Turnbull2008-04-243-11/+28
| | | | some doco fixes
* Fixes debian service enabled/disable issue as detailed in #1161.James Turnbull2008-04-031-1/+1
|
* Fixing the service-stop on debian, using the patch provided by DavidSLuke Kanies2008-03-131-2/+1
|
* Hasstatus in the init service provider; it was justLuke Kanies2008-02-211-1/+1
| | | | doing a boolean check, rather than comparing to :true.
* Fixed #1060 - Debian service removal and additionJames Turnbull2008-02-151-0/+2
|
* Fixed #1052 - fixed gentoo service managementJames Turnbull2008-02-071-0/+4
|
* Removing the 'addpath' commands from the freebsd serviceLuke Kanies2007-12-111-4/+0
| | | | provider, since it's no longer needed or even valid.