[Voyage-linux] rc.local

Giovanni Di Stasi (spam-protected)
Sat Apr 12 06:49:08 HKT 2008


Il Friday 11 April 2008 22:36:55 hai scritto:
> A part from what you do with iperf -s at the end it should be no problem.
> iperf -s never comes back and rc.local must terminat with an exit status
> to go on boot process.
> If you really want to that do a
> iper f-s &
> instead of iperf -s
> BTW: This server does not use tty so you can start is so other "servers"
> which depends on tty you shuld start with nohup <server> &
>
> Greetings
>
> Beat
>
> Giovanni Di Stasi wrote:
> >I modify the file /etc/rc.local, whose content is this:
> >
> >#!/bin/sh -e
> >#
> ># rc.local
> >#
> ># This script is executed at the end of each multiuser runlevel.
> ># Make sure that the script will "exit 0" on success or any other
> ># value on error.
> >#
> ># In order to enable or disable this script just change the execution
> ># bits.
> >#
> ># By default this script does nothing.
> >
> >remountrw
> >mkdir /click
> >remountro
> >
> >iperf -s
> >exit 0
> >

The problem was with remountrw and remountro (maybe they are not in the path 
at the point where rc.local executes). But iperf -s was also wrong, of course
Strange that nobody pointed that out! :)




More information about the Voyage-linux mailing list