~ubuntu-branches/debian/sid/vzctl/sid

« back to all changes in this revision

Viewing changes to etc/init.d/vzeventd-redhat.in

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2011-10-17 06:51:28 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20111017065128-vgdwvq5lei9g4mc7
Tags: 3.0.29.3-1
New upstream release.
Closes: #638072.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
}
33
33
 
34
34
check() {
35
 
        local param=/sys/module/vzevent/parameters/reboot_event
36
 
 
37
35
        __echo "Checking vzevent kernel module ..."
38
36
 
39
37
        if ! lsmod | fgrep -qw vzevent; then
40
38
                print_failure
41
39
                return 1
42
40
        fi
43
 
        if ! cat $param | fgrep -qw 1; then
 
41
        if ! cat /sys/module/vzevent/{,parameters/}reboot_event 2>/dev/null | \
 
42
                        fgrep -qw 1; then
44
43
                print_failure
45
 
                print_warning "vzevent module should be loaded with " \
46
 
                                "reboot_event=1 parameter"
 
44
                print_warning "vzevent module should be loaded with reboot_event=1 parameter"
47
45
                echo
48
46
                return 1
49
47
        fi