Menu

#717 System startup scripts

closed
Volker
Others (142)
5
2015-01-26
2009-11-12
No

FreeBSD 8.x doesn't like to start scripts with .sh extension

patch or Freenas interface scripts must be rewrited :)

patch:
cp /etc/rc.subr svn/etc/
--- newsvn/etc/rc.subr.orig 2009-10-25 08:04:15.000000000 +0000
+++ newsvn/etc/rc.subr 2009-11-02 16:31:03.000000000 +0000
@@ -914,9 +914,9 @@
eval unset ${_arg}_cmd ${_arg}_precmd ${_arg}_postcmd

    case "$_file" in
  • /etc/rc.d/*.sh) # no longer allowed in the base
  • warn "Ignoring old-style startup script $_file"
  • ;;
    +# /etc/rc.d/.sh) # no longer allowed in the base
    +# warn "Ignoring old-style startup script $_file"
    +# ;;
    [~#]|.OLD|.bak|.orig|,v) # scratch file; skip
    warn "Ignoring scratch file $_file"
    ;;

Discussion

  • Volker

    Volker - 2009-11-12

    Thanks for the patch,

    but FreeNAS will switch to Linux for 0.8, so there will be no FreeBSD 9.0 usage anymore.

    Regards
    Volker

     
  • Volker

    Volker - 2009-11-12

    sory, type. I mean FreeBSD 8.0.

     

Log in to post a comment.