Merge lp:~jamesh/storage-framework/systemd-units into lp:storage-framework/devel

Proposed by James Henstridge
Status: Merged
Approved by: Michi Henning
Approved revision: 125
Merged at revision: 125
Proposed branch: lp:~jamesh/storage-framework/systemd-units
Merge into: lp:storage-framework/devel
Diff against target: 125 lines (+50/-5)
8 files modified
debian/changelog (+4/-1)
debian/storage-framework-registry.install (+2/-2)
src/local-provider/CMakeLists.txt (+14/-1)
src/local-provider/com.canonical.StorageFramework.Provider.Local.service.in (+1/-0)
src/local-provider/storage-provider-local.service.in (+7/-0)
src/registry/CMakeLists.txt (+14/-1)
src/registry/com.canonical.StorageFramework.Registry.service.in (+1/-0)
src/registry/storage-framework-registry.service.in (+7/-0)
To merge this branch: bzr merge lp:~jamesh/storage-framework/systemd-units
Reviewer Review Type Date Requested Status
unity-api-1-bot continuous-integration Approve
Michi Henning (community) Approve
Review via email: mp+322085@code.launchpad.net

Commit message

Add systemd unit files for registry and local provider.

Description of the change

Add systemd unit files for registry and local provider.

When installed, you can check the status of e.g. the registry with:

    systemctl --user status storage-framework-registry

Which will tell you whether it is running and show the tail of the log file. A larger log file can be displayed with:

    journalctl --user-unit storage-framework-registry

This separates out the log entries from dbus-daemon's log. Like all log files collected by systemd, the entries are automatically time stamped and tagged with the process that produced them.

To post a comment you must log in.
Revision history for this message
Michi Henning (michihenning) wrote :

Looks good!

review: Approve
Revision history for this message
unity-api-1-bot (unity-api-1-bot) wrote :

PASSED: Continuous integration, rev:125
https://jenkins.canonical.com/unity-api-1/job/lp-storage-framework-ci/281/
Executed test runs:
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build/1923
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-0-fetch/1930
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1711
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1711/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=amd64,release=zesty/1711
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=amd64,release=zesty/1711/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1711
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1711/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=armhf,release=zesty/1711
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=armhf,release=zesty/1711/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=i386,release=xenial+overlay/1711
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=i386,release=xenial+overlay/1711/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=i386,release=zesty/1711
        deb: https://jenkins.canonical.com/unity-api-1/job/build-2-binpkg/arch=i386,release=zesty/1711/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://jenkins.canonical.com/unity-api-1/job/lp-storage-framework-ci/281/rebuild

review: Approve (continuous-integration)

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 2017-03-30 00:57:11 +0000
3+++ debian/changelog 2017-04-06 05:04:54 +0000
4@@ -1,8 +1,11 @@
5-storage-framework (0.4+17.04.20170320.1-0ubuntu2) UNRELEASED; urgency=medium
6+storage-framework (0.4-0ubuntu2) UNRELEASED; urgency=medium
7
8 [ Michi Henning ]
9 * Removed dependency on libgio.
10
11+ [ James Henstridge ]
12+ * Add systemd units for registry and local provider D-Bus services.
13+
14 -- Michi Henning <michi.henning@canonical.com> Wed, 29 Mar 2017 12:21:40 +1000
15
16 storage-framework (0.3+17.04.20170320.1-0ubuntu1) zesty; urgency=medium
17
18=== modified file 'debian/storage-framework-registry.install'
19--- debian/storage-framework-registry.install 2017-03-17 04:59:44 +0000
20+++ debian/storage-framework-registry.install 2017-04-06 05:04:54 +0000
21@@ -1,4 +1,4 @@
22 usr/lib/*/*/storage-framework-registry
23-usr/share/dbus-1/services/com.canonical.StorageFramework.Registry.service
24 usr/lib/*/*/storage-provider-local
25-usr/share/dbus-1/services/com.canonical.StorageFramework.Provider.Local.service
26+usr/lib/systemd/user/*
27+usr/share/dbus-1/services/*
28
29=== modified file 'src/local-provider/CMakeLists.txt'
30--- src/local-provider/CMakeLists.txt 2017-03-23 06:55:00 +0000
31+++ src/local-provider/CMakeLists.txt 2017-04-06 05:04:54 +0000
32@@ -33,9 +33,22 @@
33 RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}
34 )
35
36-configure_file(com.canonical.StorageFramework.Provider.Local.service.in com.canonical.StorageFramework.Provider.Local.service)
37+# D-Bus service activation file
38+configure_file(
39+ com.canonical.StorageFramework.Provider.Local.service.in
40+ com.canonical.StorageFramework.Provider.Local.service)
41
42 install(
43 FILES ${CMAKE_CURRENT_BINARY_DIR}/com.canonical.StorageFramework.Provider.Local.service
44 DESTINATION ${CMAKE_INSTALL_DATADIR}/dbus-1/services
45 )
46+
47+# systemd unit
48+configure_file(
49+ storage-provider-local.service.in
50+ storage-provider-local.service)
51+
52+install(
53+ FILES ${CMAKE_CURRENT_BINARY_DIR}/storage-provider-local.service
54+ DESTINATION "lib/systemd/user"
55+)
56
57=== modified file 'src/local-provider/com.canonical.StorageFramework.Provider.Local.service.in'
58--- src/local-provider/com.canonical.StorageFramework.Provider.Local.service.in 2017-03-17 04:59:44 +0000
59+++ src/local-provider/com.canonical.StorageFramework.Provider.Local.service.in 2017-04-06 05:04:54 +0000
60@@ -1,3 +1,4 @@
61 [D-BUS Service]
62 Name=com.canonical.StorageFramework.Provider.Local
63 Exec=@CMAKE_INSTALL_FULL_LIBDIR@/@PROJECT_NAME@/storage-provider-local
64+SystemdService=storage-provider-local.service
65
66=== added file 'src/local-provider/storage-provider-local.service.in'
67--- src/local-provider/storage-provider-local.service.in 1970-01-01 00:00:00 +0000
68+++ src/local-provider/storage-provider-local.service.in 2017-04-06 05:04:54 +0000
69@@ -0,0 +1,7 @@
70+[Unit]
71+Description=Storage Framework local provider
72+
73+[Service]
74+Type=dbus
75+BusName=com.canonical.StorageFramework.Provider.Local
76+ExecStart=@CMAKE_INSTALL_FULL_LIBDIR@/@PROJECT_NAME@/storage-provider-local
77
78=== modified file 'src/registry/CMakeLists.txt'
79--- src/registry/CMakeLists.txt 2017-03-17 09:43:46 +0000
80+++ src/registry/CMakeLists.txt 2017-04-06 05:04:54 +0000
81@@ -46,9 +46,22 @@
82 RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}
83 )
84
85-configure_file(com.canonical.StorageFramework.Registry.service.in com.canonical.StorageFramework.Registry.service)
86+# D-Bus service activation file
87+configure_file(
88+ com.canonical.StorageFramework.Registry.service.in
89+ com.canonical.StorageFramework.Registry.service)
90
91 install(
92 FILES ${CMAKE_CURRENT_BINARY_DIR}/com.canonical.StorageFramework.Registry.service
93 DESTINATION ${CMAKE_INSTALL_DATADIR}/dbus-1/services
94 )
95+
96+# systemd unit
97+configure_file(
98+ storage-framework-registry.service.in
99+ storage-framework-registry.service)
100+
101+install(
102+ FILES ${CMAKE_CURRENT_BINARY_DIR}/storage-framework-registry.service
103+ DESTINATION "lib/systemd/user"
104+)
105
106=== modified file 'src/registry/com.canonical.StorageFramework.Registry.service.in'
107--- src/registry/com.canonical.StorageFramework.Registry.service.in 2016-11-21 04:24:13 +0000
108+++ src/registry/com.canonical.StorageFramework.Registry.service.in 2017-04-06 05:04:54 +0000
109@@ -1,3 +1,4 @@
110 [D-BUS Service]
111 Name=com.canonical.StorageFramework.Registry
112 Exec=@CMAKE_INSTALL_FULL_LIBDIR@/@PROJECT_NAME@/storage-framework-registry
113+SystemdService=storage-framework-registry.service
114
115=== added file 'src/registry/storage-framework-registry.service.in'
116--- src/registry/storage-framework-registry.service.in 1970-01-01 00:00:00 +0000
117+++ src/registry/storage-framework-registry.service.in 2017-04-06 05:04:54 +0000
118@@ -0,0 +1,7 @@
119+[Unit]
120+Description=Storage Framework registry
121+
122+[Service]
123+Type=dbus
124+BusName=com.canonical.StorageFramework.Registry
125+ExecStart=@CMAKE_INSTALL_FULL_LIBDIR@/@PROJECT_NAME@/storage-framework-registry

Subscribers

People subscribed via source and target branches