~ubuntu-branches/ubuntu/maverick/policycoreutils/maverick

« back to all changes in this revision

Viewing changes to restorecond/restorecond.init

  • Committer: Bazaar Package Importer
  • Author(s): Manoj Srivastava
  • Date: 2008-09-02 13:33:10 UTC
  • mfrom: (3.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20080902133310-yxucxkzxrofgv35v
Tags: 2.0.49-6
Fix conflict between LSB header and update-rc.d options (important
bug).                                                  Closes: #493005

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
# Required-Start:    $local_fs $syslog
5
5
# Required-Stop:     $local_fs $syslog
6
6
# Default-Start:     S 2 3 4 5
7
 
# Default-Stop:      0 6
 
7
# Default-Stop:      0 1 6
8
8
# Short-Description: Start the Daemon used to maintain path file context
9
9
# Description:       uses inotify to look for creation of new files
10
10
#                    listed in the /etc/selinux/restorecond.conf file, 
32
32
# Check that we are root ... so non-root users stop here
33
33
test $(id -u) = 0  || exit 1
34
34
 
 
35
 
 
36
# Get lsb functions
 
37
. /lib/lsb/init-functions
 
38
# Load the VERBOSE setting and other rcS variables
 
39
. /lib/init/vars.sh
35
40
# Test to see if we are configured
36
41
if [ ! -f  /etc/selinux/restorecond.conf  ]; then
37
42
    log_failure_msg "There is no configuration file for restorecond."
39
44
    exit 6
40
45
fi
41
46
 
42
 
# Get lsb functions
43
 
. /lib/lsb/init-functions
44
 
# Load the VERBOSE setting and other rcS variables
45
 
. /lib/init/vars.sh
46
 
 
47
 
 
48
47
RETVAL=0
49
48
 
50
49
# See how we were called.