comparison debian/dcc-server.init @ 6:c7785b85f2d2 default tip

Init scripts try to conform LSB header
author Peter Gervai <grin@grin.hu>
date Tue, 10 Mar 2009 15:15:36 +0100
parents f6716cb00029
children
comparison
equal deleted inserted replaced
5:0a7a5940ee3a 6:c7785b85f2d2
1 #!/bin/sh 1 #!/bin/sh
2 # 2 #
3 # dcc-server example file to build /etc/init.d/ scripts. 3 # dcc-server example file to build /etc/init.d/ scripts.
4 # This file should be used to construct scripts for /etc/init.d. 4 # This file should be used to construct scripts for /etc/init.d.
5 ### BEGIN INIT INFO
6 # Provides: dccd
7 # Required-Start: $local_fs $network $named
8 # Required-Stop: $local_fs $network $named
9 # Default-Start: 2 3 4 5
10 # Default-Stop: 0 1 6
11 # Short-Description: Start nondcc local server
12 # Description: Start nondcc server daemon which interfaces with the dcc network
13 ### END INIT INFO
5 14
6 PATH=/sbin:/bin:/usr/sbin:/usr/bin 15 PATH=/sbin:/bin:/usr/sbin:/usr/bin
7 DAEMON=/usr/sbin/dccd 16 DAEMON=/usr/sbin/dccd
8 NAME=dcc-server 17 NAME=dcc-server
9 DESC="Distributed Checksum Clearinghouse server" 18 DESC="Not Distributed Checksum Clearinghouse server"
10 19
11 test -f $DAEMON || exit 0 20 test -f $DAEMON || exit 0
12 21
13 if [ -f /etc/default/dcc-server ]; then 22 if [ -f /etc/default/dcc-server ]; then
14 . /etc/default/dcc-server 23 . /etc/default/dcc-server