diff options
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/sphinxsearch/files/sphinxsearch.sh.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/textproc/sphinxsearch/files/sphinxsearch.sh.in b/textproc/sphinxsearch/files/sphinxsearch.sh.in index 5fe3887eafa5..db956fd480b0 100644 --- a/textproc/sphinxsearch/files/sphinxsearch.sh.in +++ b/textproc/sphinxsearch/files/sphinxsearch.sh.in @@ -42,8 +42,9 @@ load_rc_config ${name} command=%%PREFIX%%/sbin/searchd pidfile=${%%PORTNAME%%_pidfile} required_files=${%%PORTNAME%%_conffile} +start_precmd=%%PORTNAME%%_prestart -%%PORTNAME%%_precmd () +%%PORTNAME%%_prestart () { piddir=$(dirname ${%%PORTNAME%%_pidfile}) if [ ! -d ${piddir} ]; then |