mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-23 19:31:00 +08:00
only start-up the daemon; don't do status or stopping
This commit is contained in:
@@ -79,19 +79,6 @@ if __name__ == '__main__':
|
||||
|
||||
sys.exit(0)
|
||||
|
||||
elif command == 'status':
|
||||
rc = local_api_status(config_dir=config_dir)
|
||||
if rc:
|
||||
print('Alive', file=sys.stderr)
|
||||
sys.exit(0)
|
||||
else:
|
||||
print('Dead', file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
elif command == 'stop':
|
||||
rc = local_api_stop(config_dir=config_dir)
|
||||
sys.exit(0 if rc else 1)
|
||||
|
||||
elif command == 'restart':
|
||||
rc = local_api_stop(config_dir=config_dir)
|
||||
if not rc:
|
||||
|
||||
Reference in New Issue
Block a user