1. 05 May, 2016 2 commits
    • Patrick J Cherry's avatar
      Merge branch '12768-httpd-configure' into 'jessie' · 4f3264a6
      Patrick J Cherry authored
      Always re-create missing links in sites-enabled
      
      https://projects.bytemark.co.uk/issues/12768
      
      See merge request !3
      4f3264a6
    • Patrick J Cherry's avatar
      Merge branch '12783-memory-pressure' into 'jessie' · 6984262e
      Patrick J Cherry authored
      Exit if no domains have been detected
      
      See https://projects.bytemark.co.uk/issues/12783
      
      It seems that during periods of memory pressure, sometimes `getpwuid` fails and `symbiosis/domains.rb` just dies mid-script. Nothing is returned to `symbiosis-httpd-configure`, so the `configurations` array remains empty indicating that there aren't any domains configured. All sites in `sites-enabled` subsequently get deleted.
      
      The only situation in which the `configurations` array should be empty is when `/srv` has no directories, but in that case there's no real reason to run `symbiosis-httpd-configure`. As I understand it, every customer using Symbiosis+Apache should have at least one directory in `/srv`, so it's probably better to just exit if `configurations` is empty rather than continue to delete all sites.
      
      See merge request !4
      6984262e
  2. 21 Apr, 2016 3 commits
    • Steve Kemp's avatar
      Allow -v|--verbose to enable more verbose logging. · 312826eb
      Steve Kemp authored
      We no longer log errors during the normal course of events, such
      as:
      
      * Virtual Hosts that don't exist.
      * Malformed input-lines.
      
      Add -v, or --verbose, to see them.
      312826eb
    • Steve Kemp's avatar
      Change the UID/GID of a logfile via filehandle. · 7741f22c
      Steve Kemp authored
      This is better than using a path.
      7741f22c
    • Steve Kemp's avatar
      Updated to centralise logfile-handling. · fca3639e
      Steve Kemp authored
      We've moved the opening of the logfiles into a central routine,
      such that we can add some sanity checking, and ensure that we're
      not going to append to files which are symlinks.
      
      As part of this work we've also made the --max-files|-f command-line
      argument function, with a default of 100.  When more than the specified
      number of logfiles are open they are all closed so they can slowly
      re-grow.
      fca3639e
  3. 08 Apr, 2016 9 commits
  4. 07 Apr, 2016 1 commit
  5. 06 Apr, 2016 4 commits
  6. 17 Mar, 2016 4 commits
  7. 16 Mar, 2016 1 commit
  8. 24 Feb, 2016 1 commit
  9. 16 Feb, 2016 2 commits
  10. 05 Feb, 2016 2 commits
  11. 04 Feb, 2016 2 commits
    • Patrick J Cherry's avatar
      backup: Updated changelog · f9c6802c
      Patrick J Cherry authored
      f9c6802c
    • Patrick J Cherry's avatar
      backups: Updated the bacup2l.conf parsing in the available space check · b264fcd5
      Patrick J Cherry authored
      Although the diff is quite large, the changes are as follows:
      
      * Allow a backup2l.conf to be specified as an argument
      * A reguar expression is used to find the BACKUP_DIR definition
      * More error checking around the running of the backup2l estimate
      * The two regexes parsing the output have been squashed into one.
      * When the estimate was just Bytes, the parsing failed, as a space was
        in between the number and the letter B.
      b264fcd5
  12. 03 Feb, 2016 4 commits
  13. 22 Jan, 2016 3 commits
    • Patrick J Cherry's avatar
      common: Updated changelog · 92109e85
      Patrick J Cherry authored
      92109e85
    • Patrick J Cherry's avatar
      common: Made sure that the next set name returns a sane answer · 4ce169ca
      Patrick J Cherry authored
      It has to check all the directories in sets/ to pick the next, not just
      use the next name of the "last" available set.
      4ce169ca
    • Patrick J Cherry's avatar
      common: Refactored how --force works and when certs get generated/rolled over · ddc32981
      Patrick J Cherry authored
      The defaults are as follows:
      
      * If the current set is available
      
      ** If it is due to expire inside the threshold
      
      *** generate a new set if there is no set more recent (unless instructed
      otherwise)
      *** roll over to the new set if one has been generated (unless
      instructed not to)
      
      ** Otherwise
      
      *** do not generate a new set (unless instructed otherwise)
      *** do not roll over (unless instructed to)
      
      * If the "current" set is missing, but other sets are available
      
      ** If the most recent set is due to expire inside the threshold
      
      *** generate a new set (unless instructed otherwise)
      *** roll over to the new set if one has been generated (unless
      instructed not to)
      
      ** If the most recent set is not due to expire soon
      
      *** do not generate a new set (unless instructed otherwise)
      *** roll over to the latest set (unless instructed not to)
      
      * If there are no certificate sets
      
      ** generate a new one (unless instructed otherwise)
      ** roll over to the new set if one has been generate (unless instructed
      not to)
      ddc32981
  14. 21 Jan, 2016 2 commits