~andreserl/maas/refactor_debconf_selections_preseed

« back to all changes in this revision

Viewing changes to services/pserv/log/run

  • Committer: Gavin Panella
  • Date: 2012-02-20 15:15:32 UTC
  • mto: This revision was merged to the branch mainline in revision 494.
  • Revision ID: gavin.panella@canonical.com-20120220151532-d63xkerv800hh81j
Use daemontools to start and stop pserv.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env bash
 
2
# Copyright 2012 Canonical Ltd.  This software is licensed under the
 
3
# GNU Affero General Public License version 3 (see the file LICENSE).
 
4
 
 
5
# Exit immediately if a command exits with a non-zero status.
 
6
set -o errexit
 
7
# Treat unset variables as an error when substituting.
 
8
set -o nounset
 
9
 
 
10
# Exec log rotation for the Provisioning Server.
 
11
logdir="../../../logs/pserv"
 
12
mkdir -p "${logdir}"
 
13
# Rotate when logs reach 1MB, keeping no more than 10.
 
14
exec multilog s1048576 n10 "${logdir}"