Привет всем! Сделал Init скрипт:
#!/bin/sh
cd /home/vladf
screen -dmS server java -Xmx2048M -Xms2048M -jar forgeCore.jar nogui
screen -dmS bot ./sinusbot -RunningAsRootIsEvilAndIKnowThat
При его ручном запуске всё работает. После добавил его в /etc/rc.local:
#!/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.
sh /home/vladf/sterts
exit 0
Но при перезагрузке-ничего. Он просто не запускается! Что не так?
Пользователь добавил сообщение 01 Июня 2016, 16:56:43:
Вопрос решён. Неправильный путь