From f85398e494f1d345d03729788930335925b08467 Mon Sep 17 00:00:00 2001 From: "jin-gyu.kim" Date: Thu, 23 Jun 2016 14:17:15 +0900 Subject: [PATCH] Disable askuser service Change-Id: I744f134aaed47f92d83ea9a1aafbefaf09861c16 --- CMakeLists.txt | 2 +- packaging/askuser.spec | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3601860..8a41fb1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -78,5 +78,5 @@ SET(TARGET_TEST "askuser-test") SET(TARGET_TESTS "askuser-tests") ADD_SUBDIRECTORY(src) -ADD_SUBDIRECTORY(systemd) +#ADD_SUBDIRECTORY(systemd) ADD_SUBDIRECTORY(test) diff --git a/packaging/askuser.spec b/packaging/askuser.spec index 10345ea..4ec548e 100644 --- a/packaging/askuser.spec +++ b/packaging/askuser.spec @@ -90,22 +90,22 @@ rm -rf %{buildroot} %post # todo properly use systemd --user -ln -s /lib/systemd/user/askuser-notification.service \ -/usr/lib/systemd/user/default.target.wants/askuser-notification.service 2> /dev/null +#ln -s /lib/systemd/user/askuser-notification.service \ +#/usr/lib/systemd/user/default.target.wants/askuser-notification.service 2> /dev/null systemctl daemon-reload -if [ $1 = 1 ]; then - systemctl enable askuser.service -fi +#if [ $1 = 1 ]; then +# systemctl enable askuser.service +#fi -systemctl restart askuser.service -systemctl restart cynara.service +#systemctl restart askuser.service +#systemctl restart cynara.service %preun -if [ $1 = 0 ]; then - systemctl stop askuser.service -fi +#if [ $1 = 0 ]; then +# systemctl stop askuser.service +#fi %postun if [ $1 = 0 ]; then @@ -122,13 +122,13 @@ systemctl restart cynara.service %manifest %{name}.manifest %license LICENSE %attr(755, root, root) /usr/bin/askuser -/usr/lib/systemd/system/askuser.service +#/usr/lib/systemd/system/askuser.service %files -n askuser-notification %manifest askuser-notification.manifest %license LICENSE %attr(755,root,root) /usr/bin/askuser-notification -/usr/lib/systemd/user/askuser-notification.service +#/usr/lib/systemd/user/askuser-notification.service /usr/share/locale/en/LC_MESSAGES/askuser.mo /usr/share/locale/pl/LC_MESSAGES/askuser.mo -- 2.7.4