File: ugidd.init

package info (click to toggle)
nfs-user-server 2.2beta47-12
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,012 kB
  • ctags: 1,430
  • sloc: ansic: 12,031; sh: 652; makefile: 268
file content (50 lines) | stat: -rw-r--r-- 1,009 bytes parent folder | download | duplicates (4)
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
#!/bin/sh -e
#
# ugidd		Startup script for the ugidd server.
#
#		Modified for ugidd
#		by Herbert Xu <herbert@debian.org>
#		Written by Miquel van Smoorenburg <miquels@cistron.nl>.
#		Modified for Debian GNU/Linux
#		by Ian Murdock <imurdock@gnu.ai.mit.edu>.
#
# Version:	$Id: ugidd.init,v 1.4 1999/11/17 01:30:22 herbert Exp $

DESC="UID mapping server"

test -x /sbin/rpc.ugidd || exit 0

start_stop() {
	case "$1" in
	start)
		# We need this as ugidd is started before the usual
		# starting time of portmap.
		/etc/init.d/portmap start
		printf "Starting $DESC:"
		start-stop-daemon --start --quiet \
				  --exec /sbin/rpc.ugidd
		printf " ugidd"
		printf ".\n"
		;;
	stop)
		printf "Stopping $DESC:"
		start-stop-daemon --stop --oknodo --quiet \
				  --exec /sbin/rpc.ugidd
		printf " ugidd"
		printf ".\n"
		;;
	restart | force-reload)
		start_stop stop
		sleep 1
		start_stop start
		;;
	*)
		printf "Usage: $0 {start|stop|restart|force-reload}\n" >&2
		exit 1
		;;
	esac
}

start_stop "$@"

exit 0