#!/sbin/openrc-run # Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 depend() { need net use dns provide ircd } start() { ebegin "Starting ptlink-ircd" start-stop-daemon --start --quiet --exec /usr/bin/ptlink-ircd \ --chuid ${PTLINKIRCD_USER} -- -l /var/lib/ptlink-ircd \ -e /etc/ptlink-ircd >/dev/null eend $? } stop() { ebegin "Shutting down ptlink-ircd" start-stop-daemon --stop --pidfile /var/lib/ptlink-ircd/ircd.pid eend $? }