Browse Source

Disable automatic n2n startup

pull/60/head
Luca Deri 6 years ago
parent
commit
2e2654dd2a
  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..."
systemctl daemon-reload
systemctl reset-failed
systemctl enable edge
systemctl restart edge
systemctl enable supernode
systemctl restart supernode
# Do not start services automatically
#systemctl restart edge
#systemctl restart supernode
exit 0

9
packages/rpm/n2n.spec.in

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

Loading…
Cancel
Save