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

config_file="/etc/siproxd.conf"

pidfile="/var/run/siproxd/siproxd.pid"
command="/usr/sbin/siproxd"
command_args="-p ${pidfile} -c ${config_file}"

depend() {
	need net
}

start_pre() {
	if [ ! -f "${config_file}" ] ; then
		eerror "Please create ${config_file} first!"
		return 1
	fi
	checkpath -q -d ${pidfile%/*} -o siproxd:siproxd
}