blob: 00a58d4572dd1cfc540a78fbc83cc0438573f401 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/sbin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
description="Server for Secure Internet Live Conferencing"
pidfile="/run/silcd.pid"
command="/usr/sbin/silcd"
command_args="-f /etc/silc/silcd.conf >/dev/null 2>&1"
start_stop_daemon_args="-w 2000"
depend() {
need net
use dns
}
start_pre() {
local silcdconf="/etc/silc/silcd.conf"
if [ ! -f "${silcdconf}" ] ; then
eerror "You need to set up a ${silcdconf} file in order to start the server."
eerror "You can find an example config in /usr/share/doc/silc-server*"
return 1
fi
}
|