From: Richard Kettlewell Date: Wed, 26 Sep 2007 15:56:28 +0000 (+0100) Subject: option to suppress launchctl fiddling on install X-Git-Tag: debian-1_5_99dev8~229 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/commitdiff_plain/01f871b46afe3cd78e311f0344d002d844baf2b9 option to suppress launchctl fiddling on install --- diff --git a/server/Makefile.am b/server/Makefile.am index 92f3de2..9b92ee8 100644 --- a/server/Makefile.am +++ b/server/Makefile.am @@ -1,4 +1,3 @@ - # # This file is part of DisOrder. # Copyright (C) 2004, 2005, 2006, 2007 Richard Kettlewell @@ -106,8 +105,10 @@ install-data-hook: @if [ -d ${LAUNCHD} ]; then \ echo $(INSTALL) -m 644 uk.org.greenend.rjk.disorder.plist ${LAUNCHD};\ $(INSTALL) -m 644 uk.org.greenend.rjk.disorder.plist ${LAUNCHD};\ - echo launchctl unload ${LAUNCHD} \|\| true;\ - launchctl unload ${LAUNCHD} || true;\ - echo launchctl load ${LAUNCHD} \|\| true;\ - launchctl load ${LAUNCHD} || true;\ + if [ "$$(NOLAUNCH)" != "" ]; then \ + echo launchctl unload ${LAUNCHD} \|\| true;\ + launchctl unload ${LAUNCHD} || true;\ + echo launchctl load ${LAUNCHD} \|\| true;\ + launchctl load ${LAUNCHD} || true;\ + fi;\ fi