Merge pull request #11977 from simonfrid/feature/log_minion_pid

logging process id
This commit is contained in:
Thomas S Hatch 2014-04-14 14:22:37 -06:00
commit 6a985a10ac

View File

@ -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}