Revert "Disable nether.service temporarily for high memory usage" 93/74993/1 accepted/tizen/common/20160620.163042 accepted/tizen/ivi/20160617.083037 accepted/tizen/mobile/20160617.082853 accepted/tizen/tv/20160617.082824 accepted/tizen/wearable/20160617.082844 submit/tizen/20160616.085821
authorTomasz Swierczek <t.swierczek@samsung.com>
Thu, 16 Jun 2016 08:25:14 +0000 (10:25 +0200)
committerTomasz Swierczek <t.swierczek@samsung.com>
Thu, 16 Jun 2016 08:26:32 +0000 (10:26 +0200)
This reverts commit 66efb1d04bd6168ccc6b7466643d33fdd7a68efb.

Change-Id: I5fc6143c020ae58db2012d4f00f711bf60c68333

conf/CMakeLists.txt
packaging/nether.spec

index 8cabec6..26ddd72 100644 (file)
 
 MESSAGE(STATUS "Installing config files")
 
-#CONFIGURE_FILE(systemd/nether.service.in systemd/nether.service)
+CONFIGURE_FILE(systemd/nether.service.in systemd/nether.service)
 
 INSTALL(FILES file.policy DESTINATION ${SYSCONF_INSTALL_DIR}/nether)
 INSTALL(FILES cynara.policy DESTINATION ${SYSCONF_INSTALL_DIR}/nether)
 INSTALL(FILES nether.rules DESTINATION ${SYSCONF_INSTALL_DIR}/nether)
-#INSTALL(FILES systemd/nether.service DESTINATION ${SYSTEMD_UNIT_DIR})
-#INSTALL(FILES systemd/nether.service DESTINATION ${SYSTEMD_UNIT_DIR}/multi-user.target.wants)
+INSTALL(FILES systemd/nether.service DESTINATION ${SYSTEMD_UNIT_DIR})
+INSTALL(FILES systemd/nether.service DESTINATION ${SYSTEMD_UNIT_DIR}/multi-user.target.wants)
index cfaa011..38e1322 100644 (file)
@@ -20,8 +20,8 @@ This is a network privilege enforcing service.
 %config %{_sysconfdir}/nether/file.policy
 %config %{_sysconfdir}/nether/nether.rules
 %config %{_sysconfdir}/nether/cynara.policy
-#%{_unitdir}/nether.service
-#%{_unitdir}/multi-user.target.wants/nether.service
+%{_unitdir}/nether.service
+%{_unitdir}/multi-user.target.wants/nether.service
 %prep
 %setup -q
 
@@ -50,19 +50,19 @@ rm -rf %{buildroot}
 %post
 # Refresh systemd services list after installation
 systemctl daemon-reload || :
-#if [ $1 == 1 ]; then
-#      systemctl start nether.service || :
-#fi
-#if [ $1 == 2 ]; then
-#      systemctl restart nether.service || :
-#fi
+if [ $1 == 1 ]; then
+       systemctl start nether.service || :
+fi
+if [ $1 == 2 ]; then
+       systemctl restart nether.service || :
+fi
 
 %preun
 # Stop the service before uninstall
-#if [ $1 == 0 ]; then
-#      systemctl stop nether.service || :
-#fi
+if [ $1 == 0 ]; then
+       systemctl stop nether.service || :
+fi
 
 %postun
 # Refresh systemd services list after uninstall/upgrade
-#systemctl daemon-reload || :
+systemctl daemon-reload || :