Add daemon detached mode (--detached, -d) that runs agent in the background and returns immediately

This commit is contained in:
allegroai
2020-03-22 19:00:29 +02:00
parent 5ef627165c
commit b3418e4496
5 changed files with 95 additions and 3 deletions

View File

@@ -72,6 +72,11 @@ DAEMON_ARGS = dict({
'help': 'Do not use any network connects, assume everything is pre-installed',
'action': 'store_true',
},
'--detached': {
'help': 'Detached mode, run agent in the background',
'action': 'store_true',
'aliases': ['-d'],
},
}, **WORKER_ARGS)