mirror of
https://github.com/ntop/n2n.git
synced 2024-10-18 23:52:50 +05:30
Disable automatic n2n startup
This commit is contained in:
parent
25563f31d9
commit
06f29cbc5e
@ -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
|
||||||
|
@ -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…
Reference in New Issue
Block a user