Skip to content

Commit

Permalink
update-rc.d as part of [de]configure-sysvinit
Browse files Browse the repository at this point in the history
  • Loading branch information
da2x committed Jun 7, 2014
1 parent 6057248 commit 13fe0f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Expand Up @@ -169,7 +169,6 @@ define SYSVINITCONF-SRC
# Short-Description: $(SHORTDESC)
# Description: $(LONGDDESC)
### END INIT INFO
# Author: Daniel Aleksandersen

# Start the service $(NAME)
start() {
Expand Down Expand Up @@ -279,9 +278,11 @@ install-sysvinit: configure-sysvinit
$(INSTALL_PROGRAM) $(DISTPKGDIR)$(SYSVINITCONF) $(DESTDIR)$(SYSVINITDIR)
-$(INITDEFUTIL) $(LNAME)
-$(SERVICEUTIL) $(LNAME) start
-update-rc.d $(LNAME) enable

deconfigure-sysvinit:
-$(SERVICEUTIL) $(LNAME) stop
-update-rc.d $(LNAME) disable
-$(SYSVINITDIR) --remove $(LNAME)
-rm $(SYSVINITCONF)

Expand Down

0 comments on commit 13fe0f1

Please sign in to comment.