1. 13 May, 2014 1 commit
  2. 29 Apr, 2014 2 commits
  3. 28 Apr, 2014 1 commit
    • Apollon Oikonomopoulos's avatar
      daemon-util: support for daemons loaded on demand · 324cd7bf
      Apollon Oikonomopoulos authored
      
      
      We add a second category of daemons in daemon-util, those that are
      started on demand and should not be started by the start_all action, but
      should be stopped during service shutdown. This category currently
      includes metad and kvmd.
      
      To this end we introduce two more array variables:
      
       - ON_DEMAND_DAEMONS: currently holds kvmd and metad, which should only
         be stopped during stop-all.
      
       - ALL_DAEMONS: is the union of DAEMONS and ON_DEMAND_DAEMONS, i.e. the
         list of all known daemons.
      
      We also change the daemon-util test to expect kvmd and metad in the stop
      daemon list.
      Signed-off-by: default avatarApollon Oikonomopoulos <apoikos@gmail.com>
      Reviewed-by: default avatarJose A. Lopes <jabolopes@google.com>
      324cd7bf
  4. 02 Apr, 2014 1 commit
  5. 27 Feb, 2014 1 commit
  6. 14 Feb, 2014 1 commit
  7. 12 Feb, 2014 1 commit
  8. 05 Feb, 2014 1 commit
  9. 20 Jan, 2014 1 commit
  10. 16 Oct, 2013 1 commit
  11. 24 Jul, 2013 1 commit
    • Apollon Oikonomopoulos's avatar
      daemon-util: pass --oknodo at rotate_logs · 9a8e4b73
      Apollon Oikonomopoulos authored
      
      
      daemon-util's rotate_logs() did not pass --oknodo to start-stop-daemon while
      HUPing the daemon processes. As a result, rotate_logs would fail for a
      non-running daemon causing rotate_all_logs to exit prematurely.
      
      We can fix this by either passing --oknodo to start-stop-daemon, or have
      rotate_all_logs ignore any errors. The former is probably a safer approach - as
      it doesn't mask any potential coding errors in rotate_logs - and is also
      semantically correct (we only care about log rotation if a daemon is actually
      running).
      Signed-off-by: default avatarApollon Oikonomopoulos <apoikos@gmail.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      9a8e4b73
  12. 23 Jul, 2013 1 commit
  13. 18 Jul, 2013 1 commit
  14. 17 Jul, 2013 2 commits
  15. 11 Jul, 2013 1 commit
  16. 29 May, 2013 1 commit
  17. 21 Mar, 2013 1 commit
  18. 27 Sep, 2012 2 commits
  19. 21 Sep, 2012 1 commit
  20. 12 Jun, 2012 1 commit
    • Iustin Pop's avatar
      Fix daemon-util with non-root user models · 3c29e49d
      Iustin Pop authored
      Commit 4b42c3d6
      
       broke non-root user mode since, while trying to do a
      cleanup a move all local variable definitions to the start of the
      function; however, the plain_name var is only defined later, so this
      actually doesn't work.
      
      Note that enabling set -u doesn't _directly_ work, since we rely on
      some variables which are usually undefined (EXTRA_*_ARGS, etc.). It
      can be fixed, but in a later patch.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
      3c29e49d
  21. 23 May, 2012 1 commit
  22. 21 May, 2012 1 commit
  23. 28 Mar, 2012 1 commit
    • Michael Hanselmann's avatar
      ganeti.initd: Add “status” action · 8e2ed2e8
      Michael Hanselmann authored
      
      
      Eric Rostetter sent a patch adding a “status” action, but unfortunately
      his code was apparently specific to Red Hat. I hope this implementation
      is more distribution-agnostic; after all “status_of_proc” is part of
      LSB. Example output:
      
      $ /etc/init.d/ganeti status
      ganeti-noded is not running ... failed!
      ganeti-masterd is running.
      ganeti-rapi is running.
      ganeti-confd is running.
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      8e2ed2e8
  24. 17 Nov, 2011 1 commit
  25. 29 Oct, 2010 1 commit
  26. 07 Sep, 2010 1 commit
  27. 04 Jun, 2010 1 commit
  28. 12 Mar, 2010 7 commits
  29. 27 Jan, 2010 1 commit
  30. 19 Jan, 2010 1 commit
    • Michael Hanselmann's avatar
      daemon-util: Fix quoting issue · 03956d39
      Michael Hanselmann authored
      
      
      This patch fixes a quoting issue in daemon-util:
      
      $ EXTRA_MASTERD_ARGS=--no-voting /etc/init.d/ganeti restart
      […]
      * ganeti-masterd...
      /…/ganeti/daemon-util: line 65: local: `--no-voting': not a valid identifier
      
      The reason was that the generated variables were not quoted properly and
      the troublesome line expanded to
      “local args=$MASTERD_ARGS $EXTRA_MASTERD_ARGS” instead of the correct
      “local args="$MASTERD_ARGS $EXTRA_MASTERD_ARGS"”.
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      03956d39
  31. 11 Nov, 2009 1 commit