Added tor restart button to index and tor restart command. Enabled tor restart daemon event
This commit is contained in:
parent
b4d80da3ff
commit
1f067f614a
9 changed files with 63 additions and 6 deletions
|
@ -19,6 +19,7 @@ from .. import motdcreator # cmd to generate new Onionr MOTDs
|
|||
from .. import sitecreator # cmd to create multi-page sites
|
||||
from .. import togglebootstrap # cmd to toggle bootstrap file usage
|
||||
from ..listsites import print_site_list # cmd to list list ids
|
||||
from netcontroller.torcontrol.rebuildtor import rebuild as tor_restart
|
||||
|
||||
import onionrexceptions
|
||||
from onionrutils import importnewblocks # func to import new blocks
|
||||
|
@ -53,6 +54,7 @@ def get_arguments() -> dict:
|
|||
('start', 'daemon'): daemonlaunch.start,
|
||||
('stop', 'kill'): daemonlaunch.kill_daemon,
|
||||
('restart',): restartonionr.restart,
|
||||
('restart-tor', 'restarttor'): tor_restart,
|
||||
('add-address', 'addaddress', 'addadder'): keyadders.add_address,
|
||||
('openhome', 'gui', 'openweb',
|
||||
'open-home', 'open-web'): openwebinterface.open_home,
|
||||
|
|
|
@ -24,7 +24,6 @@ import logger
|
|||
|
||||
def toggle_bootstrap_config():
|
||||
"""Toggles the bootstrap configuration."""
|
||||
print("test")
|
||||
if config.get('general.use_bootstrap_list') is None:
|
||||
logger.error('No general.bootstrap_list setting found')
|
||||
sys.exit(3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue