Merge ~morphis/aethercast/+git/aethercast:feature/systemd-support into aethercast:master

Proposed by Simon Fels
Status: Needs review
Proposed branch: ~morphis/aethercast/+git/aethercast:feature/systemd-support
Merge into: aethercast:master
Prerequisite: ~morphis/aethercast/+git/aethercast:feature/cli-rework
Diff against target: 41 lines (+12/-1)
3 files modified
debian/aethercast.install (+1/-0)
debian/aethercast.service (+10/-0)
debian/rules (+1/-1)
Reviewer Review Type Date Requested Status
Ubuntu Phablet Team Pending
Review via email: mp+316141@code.launchpad.net

This proposal supersedes a proposal from 2017-02-01.

Commit message

Add systemd service unit

Description of the change

Add systemd service unit

To post a comment you must log in.

Unmerged commits

9e5d67e... by Simon Fels

Add systemd service unit

dce5ad2... by Simon Fels

Extend snapcraft configuration to cover changed cli

83e7725... by Simon Fels

Rework command line frontend and move everything into a single binary

Both shell and service are now covered by a single aethercast binary
which can be invoked via

 $ aethercast service

to start the service component or as

 $ aethercast shell

to get into the interactive shell. More utility things like
mirscreencast_to_stream will be converted into a subcommand as well.

856701f... by Simon Fels

Rework configuration to be interchangable

630a5da... by Simon Fels

Add snap build configuration

Currently builds aethercast without Mir and Android support. Those
things can be added back at a later point.

18c722d... by Simon Fels

Refactor necessary code bits to allow execute inside a snap

98f844b... by Simon Fels

Enable support for Mir and Android only optional

Both are not yet mutally exclusive and still depend on each other but
Mir support will become independent of the Android bits over time so
we put both decoupled already from the beginning.

294eee4... by Simon Fels

Add maintainer script to get rid of unwanted configuration file

5aa83f2... by Simon Fels

Allow dhcpd to write files which just include .lease in the name

dhcpd seems to write some temp files when its creating the lease file
and therefor needs wider access and just *.lease

cf472e7... by Simon Fels

Correctly install hook for dhclient

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/aethercast.install b/debian/aethercast.install
2index 3fad47f..2b20104 100644
3--- a/debian/aethercast.install
4+++ b/debian/aethercast.install
5@@ -2,6 +2,7 @@ debian/usr.sbin.aethercast /etc/apparmor.d/dhcpd.d/
6 usr/sbin/aethercast
7 usr/bin/aethercastctl
8 etc/init/aethercast.conf
9+etc/systemd/system/aethercast.service
10 etc/aethercast/dhcpd.conf
11 etc/dbus-1/system.d/aethercast-dbus.conf
12 etc/dhcp/dhclient-enter-hooks.d/aethercast
13diff --git a/debian/aethercast.service b/debian/aethercast.service
14new file mode 100644
15index 0000000..6f5eaf1
16--- /dev/null
17+++ b/debian/aethercast.service
18@@ -0,0 +1,10 @@
19+[Unit]
20+Description=Display casting service
21+
22+[Service]
23+Type=dbus
24+BusName=org.aethercast
25+ExecStart=/usr/sbin/aethercast service
26+
27+[Install]
28+WantedBy=multi-user.target
29diff --git a/debian/rules b/debian/rules
30index 51a7870..9a67ac2 100755
31--- a/debian/rules
32+++ b/debian/rules
33@@ -16,7 +16,7 @@ export DPKG_GENSYMBOLS_CHECK_LEVEL=4
34 include /usr/share/dpkg/default.mk
35
36 %:
37- dh $@ --parallel --fail-missing
38+ dh $@ --parallel --fail-missing --with-systemd
39
40 override_dh_install:
41 dh_install

Subscribers

People subscribed via source and target branches