Annotation of /trunk/initscripts/sysvinit/rc/swap
Parent Directory | Revision Log
Revision 3 -
(hide annotations)
(download)
Mon Dec 13 22:52:07 2004 UTC (19 years, 9 months ago) by niro
Original Path: trunk/magellan-initscripts/etc/rc.d/init.d/swap
File size: 692 byte(s)
Mon Dec 13 22:52:07 2004 UTC (19 years, 9 months ago) by niro
Original Path: trunk/magellan-initscripts/etc/rc.d/init.d/swap
File size: 692 byte(s)
This commit was generated by cvs2svn to compensate for changes in r2, which included commits to RCS files with non-trunk default branches.
1 | niro | 2 | #!/bin/bash |
2 | |||
3 | #%rlevels: 7:s 0:k 6:k | ||
4 | #%start: 10 | ||
5 | #%stop: 70 | ||
6 | |||
7 | #deps | ||
8 | #%needs: | ||
9 | #%before: | ||
10 | #%after: | ||
11 | |||
12 | source /etc/sysconfig/rc | ||
13 | source $rc_functions | ||
14 | |||
15 | case "$1" in | ||
16 | start) | ||
17 | echo -e ${COLOREDSTAR}"Activating all swap files/partitions ..." | ||
18 | swapon -a | ||
19 | evaluate_retval | ||
20 | |||
21 | update_svcstatus $1 | ||
22 | splash svc_started "$(basename $0)" 0 | ||
23 | ;; | ||
24 | |||
25 | stop) | ||
26 | echo -e ${COLOREDSTAR}"Deactivating all swap files/partitions ..." | ||
27 | swapoff -a | ||
28 | evaluate_retval | ||
29 | |||
30 | update_svcstatus $1 | ||
31 | splash svc_stopped "$(basename $0)" 0 | ||
32 | ;; | ||
33 | |||
34 | restart) | ||
35 | $0 stop | ||
36 | sleep 1 | ||
37 | $0 start | ||
38 | ;; | ||
39 | |||
40 | status) | ||
41 | echo "Retrieving swap status ..." | ||
42 | echo | ||
43 | swapon -s | ||
44 | ;; | ||
45 | |||
46 | *) | ||
47 | echo "Usage: $0 {start|stop|restart|status}" | ||
48 | exit 1 | ||
49 | ;; | ||
50 | esac |
Properties
Name | Value |
---|---|
svn:executable | * |