Skip to content
Permalink
Browse files

Handle SysVinit in the uninstall target

  • Loading branch information...
xrogaan committed Oct 24, 2019
1 parent e35a118 commit 22e20c155eb6dc52ef438050d58dc382eaff7634
Showing with 9 additions and 0 deletions.
  1. +9 −0 cmake/cmake_uninstall.cmake.in
@@ -155,6 +155,15 @@ elseif ("${init_system}" STREQUAL "OpenRC")
endforeach()
endif()

elseif ("${init_system}" STREQUAL "SysVinit")

message(STATUS "${init_system}: stopping and disabling ${daemon}")
execute_process(COMMAND sudo service ckb-next-daemon.sh stop)
find_program(UPDATE_RC_EXISTS "update-rc.d")
if (UPDATE_RC_EXISTS)
execute_process(COMMAND sudo update-rc.d ckb-next-daemon.sh remove)
endif ()

else ()
message(WARNING "Init system was not detected.
Either there's a bug, or your init system is not supported.")

0 comments on commit 22e20c1

Please sign in to comment.
You can’t perform that action at this time.