From 5efc88f3afcf1745308cbb5245c2b447a2040a2e Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 14 Sep 2018 14:09:53 +0200 Subject: [PATCH] build: Add systemd service configuration for Ethernet daemon --- Makefile.am | 3 ++- wired/ead.service.in | 13 +++++++++++++ wired/net.connman.ead.service | 5 +++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 wired/ead.service.in create mode 100644 wired/net.connman.ead.service diff --git a/Makefile.am b/Makefile.am index 1fa0fa47..bda5103a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -357,11 +357,12 @@ dist_man_MANS = $(manual_pages) endif EXTRA_DIST = src/genbuiltin src/iwd.service.in src/net.connman.iwd.service \ + wired/ead.service.in wired/net.connman.ead.service \ doc/main.conf $(manual_pages:.1=.txt) AM_CFLAGS = -fvisibility=hidden -CLEANFILES = src/iwd.service +CLEANFILES = src/iwd.service wired/ead.service DISTCHECK_CONFIGURE_FLAGS = --disable-dbus-policy --disable-systemd-service \ --enable-sim-hardcoded \ diff --git a/wired/ead.service.in b/wired/ead.service.in new file mode 100644 index 00000000..4fc18304 --- /dev/null +++ b/wired/ead.service.in @@ -0,0 +1,13 @@ +[Unit] +Description=Ethernet service +Before=network.target +Wants=network.target + +[Service] +Type=dbus +BusName=net.connman.ead +ExecStart=@libexecdir@/ead +LimitNPROC=1 + +[Install] +WantedBy=multi-user.target diff --git a/wired/net.connman.ead.service b/wired/net.connman.ead.service new file mode 100644 index 00000000..24af96bc --- /dev/null +++ b/wired/net.connman.ead.service @@ -0,0 +1,5 @@ +[D-BUS Service] +Name=net.connman.ead +Exec=/bin/false +User=root +SystemdService=ead.service