#!/bin/bash # Hackish script to generate documentation using epydoc mod="ipalib" d="./$mod-doc" f="$d.tar.bz2" init="./$mod/__init__.py" echo "Looking for $init" if [[ ! -f $init ]] then echo "Error: You do not appear to be in the project directory" exit 1 fi echo "You appear to be in the project directory" # Documentation if [[ -d $d ]] then echo "Removing old $d directory" rm -r $d fi echo "Creating documentation in $d" epydoc -v --output=$d --docformat=restructuredtext --html --no-frames $mod # Tarball if [[ -f $f ]] then echo "Removing old $f file" rm $f fi echo "Creating tarball $f" tar --create --bzip2 --file=$f $d tps://fedorapeople.org/cgit/sadmac/public_git/initscripts.git' title='initscripts.git Git repository'/>
summaryrefslogtreecommitdiffstats
path: root/src/testdinit
blob: a650099133f2ec841d206c4cf4ba57d7c6e6054e (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/sh
#
# lpd           This shell script takes care of starting and stopping
#               lpd (printer daemon).
#

# Source function library.
. /etc/init.d/functions

# See how we were called.
case "$1" in
  start)
        # Start daemons.
        echo -n $"Starting testd: "
        testd &
        echo
        touch /var/lock/subsys/testd
        ;;
  stop)
        # Stop daemons.
        echo -n $"Shutting down testd: "
	killproc testd
        echo
        rm -f /var/lock/subsys/testd
        ;;
  status)
	# Am I alive?
	status testd
	exit $?
        ;;
  restart)
	echo -n $"Shutting down testd: "
	killproc testd
	echo
	echo -n $"Starting testd: "
	testd &
	echo
	;;
  *)
        echo $"Usage: testd {start|stop|status|restart}"
        exit 1
esac

exit 0