summaryrefslogtreecommitdiff
blob: d48283fc63e8a9fe30ed9ee79812f54c3ef56188 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/sbin/openrc-run
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

pidfile=$(awk '$1 == "PidFile" { print $2 }' /etc/c-icap/c-icap.conf)

command="/usr/libexec/c-icap"
command_arguments="${EXTRA_OPTS}"

depend() {
    need localmount
}

start_pre() {
	cmdsocket=$(awk '$1 == "CommandsSocket" { print $2 }' /etc/c-icap/c-icap.conf)

	checkpath -d "$(dirname "${cmdsocket}")" "$(dirname "${pidfile}")"
}