diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2013-10-31 10:01:10 +0000 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2013-10-31 10:01:10 +0000 |
commit | 75786bc78385bc4174d921c853237f181fb460d0 (patch) | |
tree | b818c53adf565d8652025a2679e9d863d4a1f8fd /net-im/silc-server/files | |
parent | Version bump, remove old (diff) | |
download | gentoo-2-75786bc78385bc4174d921c853237f181fb460d0.tar.gz gentoo-2-75786bc78385bc4174d921c853237f181fb460d0.tar.bz2 gentoo-2-75786bc78385bc4174d921c853237f181fb460d0.zip |
Version bump. Removed old. Added rewritten init script
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)
Diffstat (limited to 'net-im/silc-server/files')
-rw-r--r-- | net-im/silc-server/files/silcd.initd-r1 | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/net-im/silc-server/files/silcd.initd-r1 b/net-im/silc-server/files/silcd.initd-r1 new file mode 100644 index 000000000000..57862e3fa7b8 --- /dev/null +++ b/net-im/silc-server/files/silcd.initd-r1 @@ -0,0 +1,25 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-im/silc-server/files/silcd.initd-r1,v 1.1 2013/10/31 10:01:09 polynomial-c Exp $ + +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 +} |