Merge lp:~james-page/cinder/systemd-support into lp:~ubuntu-server-dev/cinder/kilo

Proposed by James Page
Status: Rejected
Rejected by: James Page
Proposed branch: lp:~james-page/cinder/systemd-support
Merge into: lp:~ubuntu-server-dev/cinder/kilo
Diff against target: 92 lines (+36/-4)
4 files modified
debian/changelog (+9/-1)
debian/control (+1/-1)
debian/rules (+11/-2)
debian/service.template (+15/-0)
To merge this branch: bzr merge lp:~james-page/cinder/systemd-support
Reviewer Review Type Date Requested Status
Ubuntu Server Developers Pending
Review via email: mp+244574@code.launchpad.net

Description of the change

Add support for systemd

To post a comment you must log in.
213. By James Page

Amend version

214. By James Page

Type fix

Unmerged revisions

214. By James Page

Type fix

213. By James Page

Amend version

212. By James Page

* Add systemd support:
  - d/service.template: Add generic template for all service files.
  - d/control,rules: Add BD on dh-system, add to rules.
  - d/rules: Generate required service files for api, scheduler, volume
    and backup services.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2014-11-19 19:32:41 +0000
3+++ debian/changelog 2014-12-12 12:50:31 +0000
4@@ -1,10 +1,18 @@
5 cinder (1:2014.2-0ubuntu2) UNRELEASED; urgency=medium
6
7+ [ Chuck Short ]
8 * Open for vivid.
9 * debian/control: Update bzr branch.
10 * debian/patches/fix-requirements.patch: Refreshed.
11
12- -- Chuck Short <zulcss@ubuntu.com> Tue, 28 Oct 2014 09:51:25 -0400
13+ [ James Page ]
14+ * Add systemd support:
15+ - d/service.template: Add generic template for all service files.
16+ - d/control,rules: Add BD on dh-systemd, add to rules.
17+ - d/rules: Generate required service files for api, scheduler, volume
18+ and backup services.
19+
20+ -- James Page <james.page@ubuntu.com> Fri, 12 Dec 2014 12:41:44 +0000
21
22 cinder (1:2014.2-0ubuntu1) utopic; urgency=medium
23
24
25=== modified file 'debian/control'
26--- debian/control 2014-10-28 13:51:59 +0000
27+++ debian/control 2014-12-12 12:50:31 +0000
28@@ -3,7 +3,7 @@
29 Priority: extra
30 Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
31 XSBC-Original-Maintainer: Chuck Short <zulcss@ubuntu.com>
32-Build-Depends: debhelper (>= 8.0.0), python-all (>= 2.6)
33+Build-Depends: debhelper (>= 8.0.0), dh-systemd (>= 1.5), python-all (>= 2.6)
34 Build-Depends-Indep:
35 python-anyjson (>= 0.3.3),
36 python-babel,
37
38=== modified file 'debian/rules'
39--- debian/rules 2014-10-01 09:00:23 +0000
40+++ debian/rules 2014-12-12 12:50:31 +0000
41@@ -4,7 +4,7 @@
42 #export DH_VERBOSE=1
43
44 %:
45- dh $@ --with python2
46+ dh $@ --with python2,systemd
47
48 get-orig-source:
49 uscan --verbose --rename --destdir=../build-area
50@@ -19,12 +19,21 @@
51 rm -f $$TEMP_REZ
52 endif
53
54-override_dh_install:
55+
56+override_dh_auto_build:
57+ for service in api backup scheduler volume; do \
58+ sed -e "s|__DAEMON__|$$service|g" debian/service.template \
59+ > debian/cinder-$$service.service; \
60+ done
61+ dh_auto_build
62+
63+override_dh_install:
64 dh_install --fail-missing -Xbin/cinder-all
65
66 override_dh_fixperms:
67 dh_fixperms -Xcinder_tgt.conf
68
69 override_dh_clean:
70+ rm -f debian/*.service
71 # temporary workaround for d2to1 wonkyness
72 dh_clean -Xsetup.cfg
73
74=== added file 'debian/service.template'
75--- debian/service.template 1970-01-01 00:00:00 +0000
76+++ debian/service.template 2014-12-12 12:50:31 +0000
77@@ -0,0 +1,15 @@
78+[Unit]
79+Description=OpenStack Cinder __DAEMON__ Server
80+After=network.target
81+
82+[Service]
83+Type=simple
84+User=cinder
85+Group=cinder
86+WorkingDirectory=/run
87+RuntimeDirectory=cinder
88+ExecStart=/usr/bin/cinder-__DAEMON__ --config-file /etc/cinder/cinder.conf --logfile /var/log/cinder/__DAEMON__.log
89+Restart=on-failure
90+
91+[Install]
92+WantedBy=multi-user.target

Subscribers

People subscribed via source and target branches