#!/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 | |
} |