Add systemd service 60/225960/1 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5 tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20200303.170657 accepted/tizen/5.5/unified/wearable/hotfix/20201027.114758 submit/tizen_5.5/20200225.070558 submit/tizen_5.5/20200302.004430 submit/tizen_5.5_wearable_hotfix/20201026.184303
authorCheoleun Moon <chleun.moon@samsung.com>
Mon, 30 Sep 2019 08:21:31 +0000 (17:21 +0900)
committerCheoleun Moon <chleun.moon@samsung.com>
Wed, 26 Feb 2020 01:36:09 +0000 (10:36 +0900)
Change-Id: I93f2df00d96bbef465fb1b934690cc6f786ef092
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
packaging/asp-manager.service [new file with mode: 0755]
packaging/asp-manager.spec
packaging/net.asp.service

diff --git a/packaging/asp-manager.service b/packaging/asp-manager.service
new file mode 100755 (executable)
index 0000000..54c20aa
--- /dev/null
@@ -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
index f45ec6e..851cd21 100755 (executable)
@@ -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
index e849c6e..7faa74a 100755 (executable)
@@ -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