Browse Source

Disable automatic n2n startup

pull/109/head
Luca Deri 6 years ago
committed by emanuele-f
parent
commit
06f29cbc5e
  1. 8
      packages/debian/debian/postinst
  2. 9
      packages/rpm/n2n.spec.in

8
packages/debian/debian/postinst

@ -26,9 +26,9 @@ if [ -f /.dockerenv ]; then exit 0; fi
echo "(Re)Starting n2n..." echo "(Re)Starting n2n..."
systemctl daemon-reload systemctl daemon-reload
systemctl reset-failed systemctl reset-failed
systemctl enable edge
systemctl restart edge # Do not start services automatically
systemctl enable supernode #systemctl restart edge
systemctl restart supernode #systemctl restart supernode
exit 0 exit 0

9
packages/rpm/n2n.spec.in

@ -71,10 +71,11 @@ rm -fr $RPM_BUILD_ROOT
if [ ! -f /.dockerenv ]; then if [ ! -f /.dockerenv ]; then
/bin/systemctl daemon-reload /bin/systemctl daemon-reload
/bin/systemctl enable edge.service # Do not enable service automatically
/bin/systemctl restart edge.service #/bin/systemctl enable edge.service
/bin/systemctl enable supernode.service #/bin/systemctl restart edge.service
/bin/systemctl restart supernode.service #/bin/systemctl enable supernode.service
#/bin/systemctl restart supernode.service
fi fi
%preun %preun

Loading…
Cancel
Save