mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-28 20:39:40 +00:00
Have confluent automatically set up /var/run/confluent if permitted
If wanting to run as non-root, mkdir -p /var/run/confluent /var/log/confluent /etc/confluent and chown those to be owned by confluent user. That is probably path for deb and rpm packaging.
This commit is contained in:
parent
5acf49c9fe
commit
4911de81e6
4
TODO
4
TODO
@ -31,4 +31,6 @@ KeyError: ''
|
||||
a titlebar
|
||||
-audit log did not show confetty activity for starting console
|
||||
-read exclusive and full exclusive console access modes
|
||||
-invalid attributes at create time come out as 500
|
||||
-when an http session exists, confluent cpu usage on my vm idles at 2 %.
|
||||
profile exactly what is spinning and try to make it nicer
|
||||
- an ipmi console was once stuck in 'connecting' state, no idea how
|
@ -80,7 +80,13 @@ def _checkpidfile():
|
||||
fcntl.flock(pidfile, fcntl.LOCK_UN)
|
||||
pidfile.close()
|
||||
except IOError:
|
||||
pidfile = open('/var/run/confluent/pid', 'w')
|
||||
try:
|
||||
pidfile = open('/var/run/confluent/pid', 'w')
|
||||
except IOError as e:
|
||||
if e.errno != 2:
|
||||
raise
|
||||
os.makedirs('/var/run/confluent')
|
||||
pidfile = open('/var/run/confluent/pid', 'w')
|
||||
fcntl.flock(pidfile, fcntl.LOCK_EX)
|
||||
pidfile.write(str(os.getpid()))
|
||||
fcntl.flock(pidfile, fcntl.LOCK_UN)
|
||||
|
@ -2,7 +2,7 @@ from setuptools import setup
|
||||
|
||||
setup(
|
||||
name='confluent_server',
|
||||
version='0.1.3',
|
||||
version='0.1.5',
|
||||
author='Jarrod Johnson',
|
||||
author_email='jbjohnso@us.ibm.com',
|
||||
url='http://xcat.sf.net/',
|
||||
|
Loading…
Reference in New Issue
Block a user