From: Cheoleun Moon Date: Mon, 30 Sep 2019 08:21:31 +0000 (+0900) Subject: Add systemd service X-Git-Tag: submit/tizen/20191112.170116 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Ftags%2Fsubmit%2Ftizen%2F20191112.170116;p=platform%2Fcore%2Fconnectivity%2Fasp-manager.git Add systemd service Change-Id: I93f2df00d96bbef465fb1b934690cc6f786ef092 Signed-off-by: Cheoleun Moon --- diff --git a/packaging/asp-manager.service b/packaging/asp-manager.service new file mode 100755 index 0000000..54c20aa --- /dev/null +++ b/packaging/asp-manager.service @@ -0,0 +1,10 @@ +[Unit] +Description=Application Service Platform daemon + +[Service] +Type=dbus +BusName=net.asp +User=network_fw +Group=network_fw +SmackProcessLabel=System +ExecStart=/usr/bin/asp-manager diff --git a/packaging/asp-manager.spec b/packaging/asp-manager.spec index f45ec6e..851cd21 100755 --- a/packaging/asp-manager.spec +++ b/packaging/asp-manager.spec @@ -1,12 +1,13 @@ Name: asp-manager Summary: ASP(application service platform) manager -Version: 0.0.33 +Version: 0.0.34 Release: 1 Group: Network & Connectivity/Other License: Apache-2.0 Source0: %{name}-%{version}.tar.gz Source1: dbus-asp-manager.conf Source2: net.asp.service +Source3: asp-manager.service BuildRequires: cmake BuildRequires: pkgconfig(glib-2.0) @@ -34,8 +35,10 @@ An application service platform manager to manage services and sessions chmod 644 %{SOURCE0} chmod 644 %{SOURCE1} chmod 644 %{SOURCE2} +chmod 644 %{SOURCE3} cp -a %{SOURCE1} ./asp-manager.conf cp -a %{SOURCE2} . +cp -a %{SOURCE3} . %build @@ -56,6 +59,8 @@ rm -rf %{buildroot} mkdir -p %{buildroot}%{_datadir}/dbus-1/system-services/ cp net.asp.service %{buildroot}%{_datadir}/dbus-1/system-services/ +mkdir -p %{buildroot}%{_libdir}/systemd/system/ +cp asp-manager.service %{buildroot}%{_libdir}/systemd/system/ #DBus DAC (net-config.manifest enables DBus SMACK) mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d @@ -73,3 +78,4 @@ cp asp-manager.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/asp-manager.conf #DBus DAC %attr(644,root,root) %{_sysconfdir}/dbus-1/system.d/asp-manager.conf %attr(644,root,root) %{_datadir}/dbus-1/system-services/net.asp.service +%attr(644,root,root) %{_libdir}/systemd/system/asp-manager.service diff --git a/packaging/net.asp.service b/packaging/net.asp.service index e849c6e..7faa74a 100755 --- a/packaging/net.asp.service +++ b/packaging/net.asp.service @@ -1,4 +1,4 @@ [D-BUS Service] Name=net.asp -Exec=/usr/bin/asp-manager -User=network_fw +Exec=/bin/false +SystemdService=asp-manager.service