Merge lp:~andreserl/maas/more_packaging_changes into lp:~maas-maintainers/maas/packaging
Proposed by
Andres Rodriguez
Status: | Merged |
---|---|
Approved by: | Andres Rodriguez |
Approved revision: | no longer in the source branch. |
Merged at revision: | 21 |
Proposed branch: | lp:~andreserl/maas/more_packaging_changes |
Merge into: | lp:~maas-maintainers/maas/packaging |
Diff against target: |
320 lines (+136/-37) 16 files modified
debian/changelog (+18/-5) debian/control (+1/-0) debian/extras/maas (+2/-2) debian/maas.install (+1/-0) debian/maas.logrotate (+9/-0) debian/maas.maas-pserv.upstart (+1/-1) debian/maas.maas-txlongpoll.upstart (+14/-0) debian/maas.postinst (+14/-5) debian/maas.postrm (+15/-2) debian/maas.prerm (+11/-0) debian/maas.templates (+0/-12) debian/patches/01-fix-database-settings.patch (+6/-6) debian/patches/02-pserv-config.patch (+20/-4) debian/patches/03-txlongpoll-config.patch (+19/-0) debian/patches/series (+1/-0) debian/rules (+4/-0) |
To merge this branch: | bzr merge lp:~andreserl/maas/more_packaging_changes |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Francis J. Lacoste (community) | Approve | ||
Review via email: mp+97538@code.launchpad.net |
Commit message
Various packaging improvements that include:
- txlongpoll packaging integration.
- Fixes in postinst, postrm, prerm, including bug (LP: #955400)
- Fixes to maas wrapper.
- add a logrotate file.
To post a comment you must log in.
Hi Andres,
This is starting to look good!
I have few comments, but probably all things that can be fixed in the next
iteration.
[1]
81 === renamed file 'debian/ maas.upstart' => 'debian/ maas.maas- pserv.upstart' maas.maas- pserv.upstart 2012-03-14 23:33:18 +0000 file=/etc/ maas/pserv. yaml /run/maas- pserv.pid --logfile= /var/log/ maas/maas- pserv.log maas-pserv --config- file=/etc/ maas/pserv. yaml
82 --- debian/maas.upstart 2012-03-13 18:16:33 +0000
83 +++ debian/
84 @@ -11,4 +11,4 @@
85 respawn
86
87 # To add options to your daemon, edit the line below:
88 -exec /usr/bin/twistd -n maas-pserv --config-
89 +exec /usr/bin/twistd -n --pidfile=
We can configure that one like the txlongpoll one. Use --logfile=/dev/null and
set the log file in the configuration file.
We should probably not run this service as root. Daviey suggested running the
txlongpoll, pserv and maas as a maas user. (That means also going to
WSGIDaemonProcess for the apache config.)
[2]
91 === added file 'debian/ maas.maas- txlongpoll. upstart' maas.maas- txlongpoll. upstart 1970-01-01 00:00:00 +0000 maas.maas- txlongpoll. upstart 2012-03-14 23:33:18 +0000 /run/maas- txlongpoll. pid --logfile=/dev/null txlongpoll --config- file=/etc/ maas/txlongpoll .yaml
92 --- debian/
93 +++ debian/
94 @@ -0,0 +1,14 @@
95 +# maas - txlongpoll service
96 +#
97 +# MaaS Provisioning Service txlongpoll
98 +
99 +description "MaaS"
100 +author "Andres Rodriguez <email address hidden>"
101 +
102 +start on filesystem and net-device-up
103 +stop on runlevel [016]
104 +
105 +respawn
106 +
107 +# To add options to your daemon, edit the line below:
108 +exec /usr/bin/twistd -n --pidfile=
Same comment about running this as the maas user.
[3]
133 + if [ ! -f /var/log/ maas/maas. log ]; then maas/maas. log maas/maas. log
134 + touch /var/log/
135 + chown -R root:www-data /var/log/maas
136 + chmod 620 /var/log/
137 + chmod -R 775 /var/log/maas/oops
138 fi
The permission and ownership on /var/log/maas/oops should probably be set
regardless of the existence of maas.log
Can't those be set by the packaging info?
[4]
We probably want logrotate configs for both the pserv and txlongpoll log
files. They do support log reopening on a USR1 signal.
Cheers