convert init.d to systemd, how to determine which python is installed

2011-11-03 Thread Kaleb S. KEITHLEY
HekaFS runs a daemon from init. It's a Bottle (python-based) http server. In order to work on, e.g. RHEL6 in addition to Fedora, the old init script has: ... vercmd=from distutils.sysconfig import get_python_lib; print get_python_lib() py_dir=$(python -c ${vercmd}) exe=${py_dir}/hekafsd.py ...

Re: convert init.d to systemd, how to determine which python is installed

2011-11-03 Thread Michal Schmidt
On 11/03/2011 03:10 PM, Kaleb S. KEITHLEY wrote: In order to work on, e.g. RHEL6 in addition to Fedora, the old init script has: ... vercmd=from distutils.sysconfig import get_python_lib; print get_python_lib() py_dir=$(python -c ${vercmd}) exe=${py_dir}/hekafsd.py But the path is already

Re: convert init.d to systemd, how to determine which python is installed

2011-11-03 Thread Adam Jackson
On Thu, 2011-11-03 at 10:10 -0400, Kaleb S. KEITHLEY wrote: HekaFS runs a daemon from init. It's a Bottle (python-based) http server. In order to work on, e.g. RHEL6 in addition to Fedora, the old init script has: ... vercmd=from distutils.sysconfig import get_python_lib; print

Re: convert init.d to systemd, how to determine which python is installed

2011-11-03 Thread Jóhann B. Guðmundsson
On 11/03/2011 02:38 PM, Adam Jackson wrote: On Thu, 2011-11-03 at 10:10 -0400, Kaleb S. KEITHLEY wrote: HekaFS runs a daemon from init. It's a Bottle (python-based) http server. In order to work on, e.g. RHEL6 in addition to Fedora, the old init script has: ... vercmd=from

Re: convert init.d to systemd, how to determine which python is installed

2011-11-03 Thread Toshio Kuratomi
On Thu, Nov 03, 2011 at 10:10:03AM -0400, Kaleb S. KEITHLEY wrote: HekaFS runs a daemon from init. It's a Bottle (python-based) http server. In order to work on, e.g. RHEL6 in addition to Fedora, the old init script has: ... vercmd=from distutils.sysconfig import get_python_lib; print

Re: convert init.d to systemd, how to determine which python is installed

2011-11-03 Thread Toshio Kuratomi
On Thu, Nov 03, 2011 at 03:17:47PM +, Jóhann B. Guðmundsson wrote: Just out of curiosity are there any guidelines forbidding creating a symbolic link to that file from /usr/sbin So instead of having a unit file that looks like this... [Unit] Description=HekaFS an Clustered File