Witam przeszukałem internet przeczytałem wiele artykułów na temat możliwości auto startu w linuxach ale nie chce to jakoś działa więc co osiągnąłem.
Trochę info:
Ścieżka do plików serwerowych ts3
/ts3
Użytkownicy
root
Plik rozruchowy (auto startujący stworzony przy użyciu jakiegoś poradnika)
/etc/init.d/ts3
#!/bin/sh
# chkconfig: 2345 99 10
# Skryptu autostartu TeamSpeak 3
USER="root"
TS3='/ts3'
STARTSCRIPT="$TS3/ts3server_startscript.sh"
cd $TS3
case "$1" in
'start')
su $USER -c "$STARTSCRIPT start"
;;
'stop')
su $USER -c "$STARTSCRIPT stop"
;;
'restart')
su $USER -c "$STARTSCRIPT restart"
;;
'status')
su $USER -c "$STARTSCRIPT status"
;;
*)
echo "Usage $0 start|stop|restart|status"
esac
chkconfig
apparmor on
atd off
bootlogd off
console-font off
console-setup off
cron off
dbus off
dmesg off
dns-clean on
friendly-recovery off
grub-common on
hostname off
hwclock off
hwclock-save off
irqbalance off
killprocs on
module-init-tools off
network-interface off
network-interface-container off
network-interface-security off
networking off
networking.dpkg-new off
ondemand on
passwd off
plymouth off
plymouth-log off
plymouth-splash off
plymouth-stop off
plymouth-upstart-bridge off
pppd-dns on
procps off
rc.local on
rcS off
resolvconf off
rsync on
rsyslog off
screen-cleanup off
sendsigs 0
setvtrgb off
ssh off
stop-bootlogd off
stop-bootlogd-single off
sudo on
ts3 off
udev off
udev-fallback-graphics off
udev-finish off
udevmonitor off
udevtrigger off
ufw off
umountfs 0
umountnfs.sh 0
umountroot 0
unattended-upgrades off
urandom 0S
No i tu jest problem niestety nie potrafię tego uruchomić, liczę na bardziej zaawansowanych użytkowników, którzy mogli by pomóc.
Uruchamianie ts jako root to fatalny pomysł. Rozpakuj sobie pliki serwera w katalogu użytkownika i dodaj polecenie uruchamiające do /etc/rc.local z prawami użytkownika
#!/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.
exit 0
mógłbyś mi może pomóc jakie to polecenie i gdzie je mam dodać
zrobiłem tak:
#!/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.
sudo -u teamspeaker /ts3/ts3server_startscript.sh start
exit 0