restart nm upon make sync
[nodemanager.git] / Makefile
index 09fb9e2..08c3acf 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -60,6 +60,7 @@ ifeq (,$(NODEURL))
 else
        +$(RSYNC) ./ $(NODEURL)/usr/share/NodeManager/
        +$(RSYNC) ./initscripts/nm $(NODEURL)/etc/init.d/nm
+       ssh -i $(NODE).key.rsa root@$(NODE) service nm restart
 endif
 
 ### fetching the key