$OpenBSD$ --- daemon-control-dist.orig Sat Apr 22 03:04:43 2006 +++ daemon-control-dist Wed Jan 29 14:02:34 2014 @@ -11,11 +11,11 @@ #### Edit these to suit your configuration #### ############################################### -DENYHOSTS_BIN = "/usr/bin/denyhosts.py" -DENYHOSTS_LOCK = "/var/lock/subsys/denyhosts" -DENYHOSTS_CFG = "/usr/share/denyhosts/denyhosts.cfg" +DENYHOSTS_BIN = "${PREFIX}/bin/denyhosts.py" +DENYHOSTS_LOCK = "/var/run/denyhosts.pid" +DENYHOSTS_CFG = "${SYSCONFDIR}/denyhosts.cfg" -PYTHON_BIN = "/usr/bin/env python" +PYTHON_BIN = "${MODPY_BIN}" ############################################### #### Do not edit below #### @@ -52,7 +52,7 @@ def getpid(): return STATE_NOT_RUNNING - if not sys.platform.startswith('freebsd') and os.access("/proc", os.F_OK): + if not sys.platform.startswith('openbsd') and os.access("/proc", os.F_OK): # proc filesystem exists, look for pid if os.access(os.path.join("/proc", str(pid)), os.F_OK): return pid