source: server/common/oursrc/execsys/execsys-binfmt.pre @ 27

Last change on this file since 27 was 27, checked in by jbarnold, 16 years ago
improved execsys init script
File size: 645 bytes
Line 
1#!/bin/sh
2#
3# execsys-binfmt: test1
4#
5# chkconfig: 2345 2 98
6# description: test2
7#
8
9stop ()
10{
11    echo "-1" > /proc/sys/fs/binfmt_misc/status
12    umount /proc/sys/fs/binfmt_misc
13}
14
15start ()
16{
17    mount -t binfmt_misc none /proc/sys/fs/binfmt_misc
18# START-AUTOGENERATED: DO NOT EDIT THIS SECTION, INCLUDING THIS LINE!
19# This section is populated by the script upd-execsys
20# END-AUTOGENERATED: DO NOT EDIT THIS SECTION, INCLUDING THIS LINE!
21}
22
23case "$1" in
24start)
25    stop 2>/dev/null || :
26    start
27    ;;
28stop)
29    stop
30    ;;
31restart)
32    stop
33    start
34    ;;
35*)
36    echo "Usage: $0 [start|stop|restart]" >&2
37    exit 2
38    ;;
39esac
40
41exit $?
Note: See TracBrowser for help on using the repository browser.