Myślę, że przyczyną była próba uruchomienia jednocześnie dwóch różnych skryptów (dwóch serwerów) o czym wcześniej nie napisałem.
Tak zapisany rc.local działa:
Kod: Zaznacz cały
#!/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.
[B]/home/gambi/SERWERY/SERWER3/serwer1[/B]
exit 0
Kod: Zaznacz cały
#!/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.
[B]/home/gambi/SERWERY/SERWER3/serwer1
/home/gambi/SERWERY/SERWER2/serwer2[/B]
exit 0
Jak zatem zapisać aby oba startowały z systemem?