Skip to content

Commit

Permalink
Disable automatic n2n startup
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaderi committed Nov 23, 2018
1 parent 48c7ff7 commit 2e2654d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions packages/debian/debian/postinst
Expand Up @@ -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 changes: 5 additions & 4 deletions packages/rpm/n2n.spec.in
Expand Up @@ -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
Expand Down

0 comments on commit 2e2654d

Please sign in to comment.