mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Merge pull request #11977 from simonfrid/feature/log_minion_pid
logging process id
This commit is contained in:
commit
6a985a10ac
@ -817,6 +817,7 @@ class Minion(MinionBase):
|
||||
salt.utils.daemonize_if(opts)
|
||||
sdata = {'pid': os.getpid()}
|
||||
sdata.update(data)
|
||||
log.info('Starting a new job with PID {0}'.format(sdata['pid']))
|
||||
with salt.utils.fopen(fn_, 'w+b') as fp_:
|
||||
fp_.write(minion_instance.serial.dumps(sdata))
|
||||
ret = {'success': False}
|
||||
|
Loading…
Reference in New Issue
Block a user