[QA] Remove executable bit from files, bug 550434.
[gentoo.git] / net-misc / siproxd / files / siproxd.rc6
1 #!/sbin/runscript
2 # Copyright 1999-2005 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4 # $Id$
5
6 depend() {
7         need net
8 }
9
10 check_config() {
11         if [[ ! -f /etc/siproxd.conf ]]; then
12                 eerror "Please create /etc/siproxd.conf first!"
13                 return 1
14         fi
15         return 0
16 }
17
18 start() {
19         check_config || return 1
20
21         ebegin "Starting siproxd"
22         start-stop-daemon --start --exec /usr/sbin/siproxd -- \
23                 -p /var/run/siproxd/siproxd.pid -c /etc/siproxd.conf
24         eend $?
25 }
26
27 stop() {
28         ebegin "Stopping siproxd"
29         start-stop-daemon --stop --pidfile /var/run/siproxd/siproxd.pid
30         eend $?
31 }