Staging systemd unti files
authorBrad Peters <brad.t.peters@intel.com>
Sat, 23 Jun 2012 00:57:51 +0000 (17:57 -0700)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Tue, 9 Oct 2012 19:12:12 +0000 (21:12 +0200)
Merged-and-mangled-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Conflicts:

packaging/starter.spec

Change-Id: I0afe3fe2431a3aafd8370893ecfdbcb0daf4f235

packaging/starter.service [new file with mode: 0644]
packaging/starter.spec

diff --git a/packaging/starter.service b/packaging/starter.service
new file mode 100644 (file)
index 0000000..bef828c
--- /dev/null
@@ -0,0 +1,14 @@
+
+[Unit]
+Description=Start the "starter" program
+Before=core-efl.target
+After=xorg.target
+After=menu-daemon.service
+Requires=menu-daemon.service
+
+[Service]
+ExecStart=/usr/bin/starter
+
+[Install]
+WantedBy=core-efl.target
+
index ab4196b..ee3af09 100755 (executable)
@@ -5,6 +5,7 @@ Release:    1
 Group:      TO_BE/FILLED_IN
 License:    Flora Software License
 Source0:    starter-%{version}.tar.gz
+Source1:    starter.service
 Requires(post): /usr/bin/vconftool
 BuildRequires:  cmake
 BuildRequires:  pkgconfig(glib-2.0)
@@ -36,6 +37,9 @@ make -j1
 rm -rf %{buildroot}
 %make_install
 
+mkdir -p %{buildroot}%{_libdir}/systemd/user/core-efl.target.wants
+install -m 0644 %SOURCE1 %{buildroot}%{_libdir}/systemd/user/
+ln -s ../starter.service %{buildroot}%{_libdir}/systemd/user/core-efl.target.wants/starter.service
 
 %post
 change_file_executable()
@@ -65,3 +69,5 @@ sync
 %{_sysconfdir}/init.d/rd3starter
 %{_bindir}/starter
 %{_libdir}/liblock-daemon.so
+%{_libdir}/systemd/user/starter.service
+%{_libdir}/systemd/user/core-efl.target.wants/starter.service