Skip to content
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/
@@ -155,6 +155,15 @@ elseif ("${init_system}" STREQUAL "OpenRC")

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

message(STATUS "${init_system}: stopping and disabling ${daemon}")
execute_process(COMMAND sudo service stop)
find_program(UPDATE_RC_EXISTS "update-rc.d")
execute_process(COMMAND sudo update-rc.d 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.