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)
%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
%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 || :