apply systemd
authormunkyu.im <munkyu.im@samsung.com>
Thu, 14 Mar 2013 12:15:39 +0000 (21:15 +0900)
committermunkyu.im <munkyu.im@samsung.com>
Thu, 14 Mar 2013 12:15:39 +0000 (21:15 +0900)
emuld.service [new file with mode: 0644]
packaging/emuld.spec

diff --git a/emuld.service b/emuld.service
new file mode 100644 (file)
index 0000000..aa93fbd
--- /dev/null
@@ -0,0 +1,7 @@
+[Unit]
+Description=emuld
+After=multi-user.target
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/emuld
index b6dff2a3186cb81ac7cd3b40139b5ae2f2373741..2e8b6fd431ed99ce226d4509d1208827cbfddbad 100644 (file)
@@ -1,6 +1,6 @@
 #git:/slp/pkgs/e/emulator-daemon
 Name: emuld
-Version: 0.2.27
+Version: 0.2.28
 Release: 1
 Summary: emuld is used for communication emulator between and ide.
 License: Apache
@@ -23,6 +23,13 @@ make
 
 %install
 rm -rf %{buildroot}
+if [ ! -d %{buildroot}/usr/lib/systemd/system/multi-user.target.wants ]; then
+    mkdir -p %{buildroot}/usr/lib/systemd/system/multi-user.target.wants
+fi
+cp emuld.service %{buildroot}/usr/lib/systemd/system/.
+ln -s ../emuld.service %{buildroot}/usr/lib/systemd/system/multi-user.target.wants/emuld.service
+
+
 %make_install
 
 %clean
@@ -43,5 +50,7 @@ touch /opt/nfc/sdkMsg
 %files
 %defattr(-,root,root,-)
 %{_prefix}/bin/emuld
+/usr/lib/systemd/system/emuld.service
+/usr/lib/systemd/system/multi-user.target.wants/emuld.service
 
 %changelog