2018-08-10 19:18:41 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
import sys
|
|
|
|
import os
|
|
|
|
|
2018-10-31 12:12:17 +00:00
|
|
|
# setns.py fetching leader PID.
|
|
|
|
if sys.argv[1] == 'info':
|
2018-11-04 20:16:44 +00:00
|
|
|
print('Pid: 1')
|
2018-10-31 12:12:17 +00:00
|
|
|
sys.exit(0)
|
|
|
|
|
2018-08-10 19:18:41 +00:00
|
|
|
os.environ['ORIGINAL_ARGV'] = repr(sys.argv)
|
2018-10-31 12:41:32 +00:00
|
|
|
os.environ['THIS_IS_STUB_LXC'] = '1'
|
2018-08-10 19:18:41 +00:00
|
|
|
os.execv(sys.executable, sys.argv[sys.argv.index('--') + 1:])
|