FreeBSD rc.d

This is a discussion on FreeBSD rc.d within the Tech Board forums, part of the Community Boards category; Many of my scripts in rc.d run just fine except the one that starts pure-ftpd, The VERY ODD thing is ...

  1. #1
    Something Clever ginoitalo's Avatar
    Join Date
    Dec 2001
    Posts
    187

    FreeBSD rc.d

    Many of my scripts in rc.d run just fine except the one that starts pure-ftpd, The VERY ODD thing is that running it from the command line after boot works just fine

    Code:
    root@presto:/usr/local/etc/rc.d> ls -l
    total 18
    -r-xr-xr-x  1 root  wheel   248 Jul 24 17:24 000.pkgtools.sh
    -rwx------  1 root  wheel   512 Sep  4 23:01 apache.sh
    -rwx------  1 root  wheel   156 Sep  4 22:34 inetd.sh
    -r--------  1 root  wheel  5616 Jul 27 16:57 mysql.server
    -rwx------  1 root  wheel   270 Sep  4 22:32 mysql.sh
    -rwx------  1 root  wheel   297 Sep  5 13:04 pureftpd.sh
    -rwx------  1 root  wheel   167 Sep  4 22:26 webmin.sh
    root@presto:/usr/local/etc/rc.d> cat pureftpd.sh
    #!/bin/sh
    
    
    #
    # Start PureFTPd
    #
    
    echo " "
    
    case "$1" in
            start)
                    /usr/local/sbin/pure-ftpd --chrooteveryone --maxclientsperip 3 --noanonymous --maxdiskusagepct 95 &
                    echo "........PureFTPd  ...  UP"
            ;;
            stop)
                    killall pure-ftpd
                    echo "........PureFTPd  ...  Stopped"
            ;;
    esac
    
    echo " "
    
    
    root@presto:/usr/local/etc/rc.d> ./pureftpd.sh start
    
    ........PureFTPd  ...  UP
    
    
    root@presto:/usr/local/etc/rc.d> ps -aux | grep pure
    root     697  0.0  0.7  1424  876  p0  S     1:13PM   0:00.00 pure-ftpd (SERVER) (pure-ftpd)
    No error messages in /var/log/messages or at boot time...
    any ideas ?

  2. #2
    Something Clever ginoitalo's Avatar
    Join Date
    Dec 2001
    Posts
    187
    Might as well ask 1 more question:
    Prob#2:

    When FreeBSD boots, it shows me a menu of boot options (it's the menu that aso print the little devil pic in ascii art on the right) It defaults to option 1 in 10 seconds, I need it to default to option 2, (because my PC won't boot without ACPI support) how do you do that ?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. [Need Help] serial port programming on freeBSD
    By Hermisky in forum Networking/Device Communication
    Replies: 2
    Last Post: 07-13-2006, 07:51 PM
  2. freebsd and redhat dual boot.
    By xddxogm3 in forum Linux Programming
    Replies: 1
    Last Post: 05-09-2004, 07:06 PM
  3. FreeBSD
    By confuted in forum Tech Board
    Replies: 10
    Last Post: 09-16-2003, 08:05 PM
  4. FreeBSD rocks!
    By frenchfry164 in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 08-25-2003, 09:11 PM
  5. Porting to FreeBSD
    By Beastie in forum Linux Programming
    Replies: 1
    Last Post: 06-15-2003, 08:37 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21