Last change
on this file since 1914 was
1791,
checked in by andersk, 13 years ago
|
trac: Mangle HTTP_REFERER to let the login link keep you on the same page.
(Merge of r1526:1528 from branches/locker-dev to trunk, from andersk)
|
|
File size:
957 bytes
|
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 |
---|
[1357] | 29 | echo ':CLR:M::MZ::/usr/bin/mono:' > /proc/sys/fs/binfmt_misc/register |
---|
[27] | 30 | } |
---|
| 31 | |
---|
| 32 | case "$1" in |
---|
| 33 | start) |
---|
| 34 | stop 2>/dev/null || : |
---|
| 35 | start |
---|
| 36 | ;; |
---|
| 37 | stop) |
---|
| 38 | stop |
---|
| 39 | ;; |
---|
[110] | 40 | force-reload) |
---|
| 41 | stop |
---|
| 42 | start |
---|
| 43 | ;; |
---|
[27] | 44 | restart) |
---|
| 45 | stop |
---|
| 46 | start |
---|
| 47 | ;; |
---|
| 48 | *) |
---|
[110] | 49 | echo "Usage: $0 [start|stop|restart|force-reload]" >&2 |
---|
[27] | 50 | exit 2 |
---|
| 51 | ;; |
---|
| 52 | esac |
---|
| 53 | |
---|
| 54 | exit $? |
---|
Note: See
TracBrowser
for help on using the repository browser.