summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinkyu Kang <mk7.kang@samsung.com>2015-08-11 14:29:06 +0900
committerMinkyu Kang <mk7.kang@samsung.com>2015-08-11 14:29:06 +0900
commitc5ef910490f5af3a862387a2ba2fe92b9bb0e6ed (patch)
tree9322eeba6ff4a7d22638ceea483e6def53a51886
parent68688b3aadc7140fa4d2903d5279be60c656c6e1 (diff)
downloadair_infosquare-c5ef910490f5af3a862387a2ba2fe92b9bb0e6ed.tar.gz
air_infosquare-c5ef910490f5af3a862387a2ba2fe92b9bb0e6ed.tar.bz2
air_infosquare-c5ef910490f5af3a862387a2ba2fe92b9bb0e6ed.zip
fix systemd service file to notification-display
Change-Id: I9dc9ff76882deef58f895a8b45aa80aec5765332 Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
-rw-r--r--daemon/notification-display.path5
-rw-r--r--daemon/notification-display.service3
-rw-r--r--packaging/org.tizen.infosquare.spec6
3 files changed, 9 insertions, 5 deletions
diff --git a/daemon/notification-display.path b/daemon/notification-display.path
new file mode 100644
index 0000000..6adbaaa
--- /dev/null
+++ b/daemon/notification-display.path
@@ -0,0 +1,5 @@
+[Unit]
+Description=This path will tell you that service is ready to launch
+
+[Path]
+PathExists=/run/.wm_ready
diff --git a/daemon/notification-display.service b/daemon/notification-display.service
index 3907696..07cfdc6 100644
--- a/daemon/notification-display.service
+++ b/daemon/notification-display.service
@@ -1,7 +1,5 @@
[Unit]
Description=Notifications Display daemon
-Requires=notifications.service display-manager-run.service tizen-system-env.service
-After=notifications.service display-manager-run.service
[Service]
Type=simple
@@ -11,4 +9,3 @@ Restart=always
[Install]
WantedBy=default.target
-
diff --git a/packaging/org.tizen.infosquare.spec b/packaging/org.tizen.infosquare.spec
index bc897e2..84b88fd 100644
--- a/packaging/org.tizen.infosquare.spec
+++ b/packaging/org.tizen.infosquare.spec
@@ -48,7 +48,8 @@ make %{?jobs:-j%jobs}
install --directory %{buildroot}/%{_datadir}
mkdir -p %{buildroot}/%{_unitdir_user}/default.target.wants
install -m 0644 daemon/notification-display.service %{buildroot}/%{_unitdir_user}/notification-display.service
-ln -sf ../notification-display.service %{buildroot}/%{_unitdir_user}/default.target.wants/notification-display.service
+install -m 0644 daemon/notification-display.path %{buildroot}/%{_unitdir_user}/notification-display.path
+ln -sf ../notification-display.path %{buildroot}/%{_unitdir_user}/default.target.wants/notification-display.path
%clean
rm -rf %{buildroot}
@@ -60,5 +61,6 @@ rm -rf %{buildroot}
%{_servicedir}/*
%{_datadir}
%{_manifestdir}/%{name}.xml
-%{_unitdir_user}/default.target.wants/notification-display.service
+%{_unitdir_user}/default.target.wants/notification-display.path
%{_unitdir_user}/notification-display.service
+%{_unitdir_user}/notification-display.path