2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 02:52:07 +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:
Jarrod Johnson 2014-05-13 10:59:41 -04:00
parent 5acf49c9fe
commit 4911de81e6
3 changed files with 11 additions and 3 deletions

4
TODO
View File

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

View File

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

View File

@ -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/',