| 
                Last change
                  on this file since 201 was
                  110,
                  checked in by tabbott, 19 years ago
           | 
        
        
          | 
            Add tags so that it's a happy initscript for Debian as well as Fedora
           | 
        
        | 
            File size:
            1.0 KB
           | 
      
      
        
  | Rev | Line |   | 
|---|
| [1] | 1 | #!/bin/sh | 
|---|
 | 2 | # | 
|---|
| [110] | 3 | # execsys-binfmt: test1 | 
|---|
| [1] | 4 | # | 
|---|
| [27] | 5 | # chkconfig: 2345 2 98 | 
|---|
| [1] | 6 | # description: test2 | 
|---|
 | 7 | # | 
|---|
| [110] | 8 | ### BEGIN INIT INFO | 
|---|
 | 9 | # Provides:          execsys-binfmt | 
|---|
 | 10 | # Required-Start:    $syslog | 
|---|
 | 11 | # Required-Stop:     $syslog | 
|---|
 | 12 | # Should-Start:      $local_fs | 
|---|
 | 13 | # Should-Stop:       $local_fs | 
|---|
 | 14 | # Default-Start:     2 3 4 5 | 
|---|
 | 15 | # Default-Stop:      0 1 6 | 
|---|
 | 16 | # Short-Description: Start scripts.mit.edu execsys system | 
|---|
 | 17 | # Description:       Decides what interpreter to use to execute files | 
|---|
 | 18 | ### END INIT INFO | 
|---|
| [1] | 19 |  | 
|---|
| [27] | 20 | stop () | 
|---|
 | 21 | { | 
|---|
 | 22 |     echo "-1" > /proc/sys/fs/binfmt_misc/status | 
|---|
 | 23 |     umount /proc/sys/fs/binfmt_misc | 
|---|
 | 24 | } | 
|---|
| [1] | 25 |  | 
|---|
| [27] | 26 | start () | 
|---|
 | 27 | { | 
|---|
 | 28 |     mount -t binfmt_misc none /proc/sys/fs/binfmt_misc | 
|---|
| [1] | 29 | # START-AUTOGENERATED: DO NOT EDIT THIS SECTION, INCLUDING THIS LINE! | 
|---|
 | 30 | # This section is populated by the script upd-execsys | 
|---|
 | 31 | # END-AUTOGENERATED: DO NOT EDIT THIS SECTION, INCLUDING THIS LINE! | 
|---|
| [27] | 32 | } | 
|---|
 | 33 |  | 
|---|
 | 34 | case "$1" in | 
|---|
 | 35 | start) | 
|---|
 | 36 |     stop 2>/dev/null || : | 
|---|
 | 37 |     start | 
|---|
 | 38 |     ;; | 
|---|
 | 39 | stop) | 
|---|
 | 40 |     stop | 
|---|
 | 41 |     ;; | 
|---|
| [110] | 42 | force-reload) | 
|---|
 | 43 |     stop | 
|---|
 | 44 |     start | 
|---|
 | 45 |     ;; | 
|---|
| [27] | 46 | restart) | 
|---|
 | 47 |     stop | 
|---|
 | 48 |     start | 
|---|
 | 49 |     ;; | 
|---|
 | 50 | *) | 
|---|
| [110] | 51 |     echo "Usage: $0 [start|stop|restart|force-reload]" >&2 | 
|---|
| [27] | 52 |     exit 2 | 
|---|
 | 53 |     ;; | 
|---|
 | 54 | esac | 
|---|
 | 55 |  | 
|---|
 | 56 | exit $? | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.