aboutsummaryrefslogtreecommitdiffstats
path: root/macros-perarch.in
Commit message (Expand)AuthorAgeFilesLines
* Synthesized commit during git-svn import combining previous Mandriva history ...Mageia SVN-Git Migration2011-01-061-1/+1
* move %_gnu out of perarch macros Pascal Rigaux2008-01-281-1/+0
* remove %_target_platform from perlarch macros, since it is not arch specificPascal Rigaux2008-01-281-1/+0
* - add rpmpoptOlivier Thauvin2005-05-011-2/+1
* - importOlivier Thauvin2005-04-261-0/+25
m class='right' method='get' action='/software/drakx/log/perl-install/standalone/interactive_http/miniserv.init'>
path: root/perl-install/standalone/interactive_http/miniserv.init
blob: 39c724dc7f1682b8f93edd18100f185a51369b20 (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
45
46
47
48
49
50
51
#!/bin/sh
# chkconfig: 235 99 00
# description: Start or stop the miniserv administration server

name=drakxtools_http
server=/usr/share/libDrakX/$name/miniserv.pl

case "$1" in
'start')
	echo -n "Starting $name: "
	perl $server /etc/$name.conf
	touch /var/lock/subsys/drakxtools_http
	echo $name
	;;
'stop')
	echo -n "Shutting down $name: "
	kill `cat /var/run/$name.pid`
	rm -f /var/lock/subsys/drakxtools_http
	echo $name
	;;
'status')
	if [ -s /var/run/$name.pid ]; then
	    pid=`cat /var/run/$name.pid`
		kill -0 $pid >/dev/null 2>&1
		if [ "$?" = "0" ]; then
			echo "$name (pid $pid) is running"
		else
			echo "$name is stopped"
		fi
	else
		echo "$name is stopped"
	fi
	;;
'restart')
	$0 stop
	$0 start
	;;
'reload')
        $0 stop
        $0 start
        ;;
'condrestart')
	if [ -f /var/lock/subsys/drakxtools_http ]; then
            $0 restart
        fi
        ;;
*)
	echo "Usage: $0 {start|stop|restart|status|reload|condrestart}"
	;;
esac
exit 0