Last change
on this file since 84f3ac2 was 2167cfe, checked in by William Harrington <kb0iic@…>, 10 years ago |
bootscripts are the scripts used for the sysvinit book.
|
-
Property mode
set to
100644
|
File size:
511 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 | # Begin $rc_base/init.d/portmap
|
---|
3 |
|
---|
4 | #$LastChangedBy: bdubbs $
|
---|
5 | #$Date: 2005-08-01 14:29:19 -0500 (Mon, 01 Aug 2005) $
|
---|
6 |
|
---|
7 | . /etc/sysconfig/rc
|
---|
8 | . $rc_functions
|
---|
9 |
|
---|
10 | case "$1" in
|
---|
11 | start)
|
---|
12 | boot_mesg "Starting RPC Portmap"
|
---|
13 | loadproc /sbin/portmap
|
---|
14 | ;;
|
---|
15 |
|
---|
16 | stop)
|
---|
17 | boot_mesg "Stopping Portmap"
|
---|
18 | killproc /sbin/portmap
|
---|
19 | ;;
|
---|
20 |
|
---|
21 | restart)
|
---|
22 | $0 stop
|
---|
23 | sleep 1
|
---|
24 | $0 start
|
---|
25 | ;;
|
---|
26 |
|
---|
27 | status)
|
---|
28 | statusproc /sbin/portmap
|
---|
29 | ;;
|
---|
30 |
|
---|
31 | *)
|
---|
32 | echo "Usage: $0 {start|stop|restart|status}"
|
---|
33 | exit 1
|
---|
34 | ;;
|
---|
35 |
|
---|
36 | esac
|
---|
37 |
|
---|
38 | # End $rc_base/init.d/portmap
|
---|
Note:
See
TracBrowser
for help on using the repository browser.