Changeset 27


Ignore:
Timestamp:
Oct 9, 2006, 9:51:47 PM (18 years ago)
Author:
jbarnold
Message:
improved execsys init script
Location:
server
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • server/common/oursrc/execsys/execsys-binfmt.pre

    r1 r27  
    33# execsys-binfmt: test1
    44#
    5 # chkconfig: 2345 2 99
     5# chkconfig: 2345 2 98
    66# description: test2
    77#
    88
    9 mount -t binfmt_misc none /proc/sys/fs/binfmt_misc
    10 echo "-1" > /proc/sys/fs/binfmt_misc/status
     9stop ()
     10{
     11    echo "-1" > /proc/sys/fs/binfmt_misc/status
     12    umount /proc/sys/fs/binfmt_misc
     13}
    1114
     15start ()
     16{
     17    mount -t binfmt_misc none /proc/sys/fs/binfmt_misc
    1218# START-AUTOGENERATED: DO NOT EDIT THIS SECTION, INCLUDING THIS LINE!
    1319# This section is populated by the script upd-execsys
    1420# 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 $?
  • server/common/oursrc/execsys/execsys.conf

    r1 r27  
    1010
    1111<Files *.py>
     12        SetHandler cgi-script
     13        Options +ExecCGI
     14</Files>
     15
     16<Files *.cgi>
    1217        SetHandler cgi-script
    1318        Options +ExecCGI
  • server/fedora/specs/execsys.spec

    r1 r27  
    4343/etc/init.d/execsys-binfmt
    4444
     45%post
     46chkconfig --add execsys-binfmt
     47service execsys-binfmt start
     48
     49%preun
     50service execsys-binfmt stop
     51chkconfig --del execsys-binfmt
     52
    4553%changelog
    4654
Note: See TracChangeset for help on using the changeset viewer.