Annotation of /trunk/magellan-initscripts/rc/cleanfs
Parent Directory | Revision Log
Revision 47 -
(hide annotations)
(download)
Mon Feb 14 22:25:20 2005 UTC (19 years, 7 months ago) by niro
Original Path: trunk/magellan-initscripts/etc/rc.d/init.d/cleanfs
File size: 829 byte(s)
Mon Feb 14 22:25:20 2005 UTC (19 years, 7 months ago) by niro
Original Path: trunk/magellan-initscripts/etc/rc.d/init.d/cleanfs
File size: 829 byte(s)
added missing wtmp
1 | niro | 2 | #!/bin/bash |
2 | |||
3 | #%rlevels: 7:s | ||
4 | #%start: 50 | ||
5 | #%stop: | ||
6 | |||
7 | #deps | ||
8 | #%needs: | ||
9 | #%before: | ||
10 | #%after: | ||
11 | |||
12 | source /etc/sysconfig/rc | ||
13 | source $rc_functions | ||
14 | |||
15 | echo -e ${COLOREDSTAR}"Removing /var/run/* and /var/lock/* ..." | ||
16 | for i in /var/run/* | ||
17 | do | ||
18 | if [ -d ${i} ] | ||
19 | then | ||
20 | rm -rf ${i}/* | ||
21 | else | ||
22 | rm -f ${i} | ||
23 | fi | ||
24 | done | ||
25 | |||
26 | for i in /var/lock/* | ||
27 | do | ||
28 | if [ -d ${i} ] | ||
29 | then | ||
30 | rm -rf ${i}/* | ||
31 | else | ||
32 | rm -f ${i} | ||
33 | fi | ||
34 | done | ||
35 | evaluate_retval | ||
36 | |||
37 | echo -e ${COLOREDSTAR}"Creating new /var/run/utmp ..." | ||
38 | touch /var/run/utmp && chmod 644 /var/run/utmp | ||
39 | evaluate_retval | ||
40 | |||
41 | niro | 47 | echo -e ${COLOREDSTAR}"Creating new /var/run/wtmp ..." |
42 | touch /var/log/wtmp && chmod 644 /var/log/wtmp | ||
43 | evaluate_retval | ||
44 | |||
45 | niro | 2 | echo -e ${COLOREDSTAR}"Removing possible /etc/nologin /fastboot and /forcefsck ..." |
46 | rm -f /etc/nologin /fastboot /forcefsck | ||
47 | evaluate_retval | ||
48 | |||
49 | update_svcstatus $1 | ||
50 | splash svc_started "$(basename $0)" 0 |
Properties
Name | Value |
---|---|
svn:executable | * |