~gnuoy/charm-helpers/bzr-fetch

  • Committer: Matthew Wedgwood
  • Date: 2013-06-21 14:22:28 UTC
  • mfrom: (26.1.2 service_control)
  • Revision ID: matthew.wedgwood@canonical.com-20130621142228-5wr0bh9nr9ryw3jq
[james-page] Refactoring of service control code in host helper

1) Use 'service' command for all service control

Detecting upstart and init.d configuration files is overkill; this is
exactly what the 'service' command is design todo and it also deals with
saucy onwards where init.d and upstart configuration with the same
name might be installed.

'service' will always do the right thing

2) Added restart and reload helpers

reload detects an error (say the service is not running) and will fallback
to restart if so.

This is inline with the openstack charm helpers code.
Filename Latest Rev Last Changed Committer Comment Size
..
bin 2 11 years ago Matthew Wedgwood Project structure Diff
charmhelpers 2 11 years ago Matthew Wedgwood Project structure Diff
debian 3 11 years ago Matthew Wedgwood Initial import of charmsupport Diff
scripts 2 11 years ago Matthew Wedgwood Project structure Diff
tests 2 11 years ago Matthew Wedgwood Project structure Diff
.bzrignore 11.3.3 11 years ago Michael Nelson Use .env as there's already a bzrignore entry. 81 bytes Diff Download File
LICENSE.txt 1 11 years ago Matthew Wedgwood Initial commit 33.7 KB Diff Download File
Makefile 11.3.1 11 years ago Michael Nelson Add simple test_requirements.txt to enable running 792 bytes Diff Download File
MANIFEST.in 3 11 years ago Matthew Wedgwood Initial import of charmsupport 112 bytes Diff Download File
README.test 11.2.1 11 years ago andrew.glen-young at canonical Fix upstart script detection to include '.conf' su 148 bytes Diff Download File
README.txt 4 11 years ago Matthew Wedgwood Fixup for charmsupport, adopt package infrastructu 309 bytes Diff Download File
setup.cfg 4 11 years ago Matthew Wedgwood Fixup for charmsupport, adopt package infrastructu 69 bytes Diff Download File
setup.py 24.2.10 10 years ago Michael Nelson Add salt-call wrapper. 1 KB Diff Download File
File tarmac_tests.sh 3 11 years ago Matthew Wedgwood Initial import of charmsupport 75 bytes Diff Download File
test_requirements.txt 11.3.3 11 years ago Michael Nelson Use .env as there's already a bzrignore entry. 588 bytes Diff Download File
VERSION 3 11 years ago Matthew Wedgwood Initial import of charmsupport 6 bytes Diff Download File