Disable automatic n2n startup

This commit is contained in:
Luca Deri 2018-11-23 16:57:14 +01:00
parent 48c7ff78bd
commit 2e2654dd2a
2 changed files with 9 additions and 8 deletions

View File

@ -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

View File

@ -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