How to start teamspeak 3 on boot, ubuntu server 12.04

Jochem Kuijpers

So I'm quite new to linux but I'm starting to understand it. I have a Ubuntu Server 12.04 system, fresh install, and I installed a teamspeak 3 server on it:

$ sudo useradd teamspeak
(provided user info and password)
$ su teamspeak
(entered password)
$ cd /home/teamspeak
$ wget http://ftp.4players.de/pub/hosted/ts3/releases/3.0.10.3/teamspeak3-server_linux-amd64-3.0.10.3.tar.gz
(download teamspeak.tar.gz)
$ tar -zxvf teamspeak3-server_linux-amd64-3.0.10.3.tar.gz
(unpacked the file to teamspeak3-server_linux-amd64)
$ mv teamspeak3-server_linux-amd64 server
(server is no located in /home/teamspeak/server)
$ cd ./server
$ ./ts3server_minimal_runscript.sh createinifile=1
(initialized the server)
$ ./ts3server_startscript.sh start
(started the server)

Now when I reboot my server (e.g. $ sudo reboot) the server doesn't start up. Obviously because I haven't configured anything in /etc/init.d but I have no idea how to do this.

I want the server to start like it does with the /home/teamspeak/server/ts3server_startscript.sh start script, ran by the user teamspeak.

I followed several guides but they didn't work. Can someone help me?

Kaz Wolfe

I recommend creating an Upstart script.

First you want to create the script itself: sudo nano /etc/init/ts-server.conf

Copy and paste this skeleton and make any changes you need:

# description "start and stop the TS server"

console log # Log events to console

exec start-stop-daemon --start --chdir /home/teamspeak/server/ --chuid teamspeak \
    --exec /home/teamspeak/server/ts3server_startscript.sh start

 start on runlevel [2345] # Tell when to start
stop on runlevel [^2345] # Tell when to stop

respawn # Block excess respawn
respawn limit 20 5 # Ditto

Save that file, go to /home/teamspeak/server/ and create a file ts3server_upstart.sh
Contents:

#!/bin/bash
/home/teamspeak/server/ts3server_startscript.sh start

Save, mark it as execuatable, done! It'll start on boot, and can be manually started/stopped/restarted using sudo service ts-server start, sudo service ts-server stop, and sudo service ts-server restart, respectively.

EDIT: This may not actually STOP TeamSpeak. I do not know enough about TS and starting to tell you whether it will or will not.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

Ubuntu 17.04의 TeamSpeak

분류에서Dev

TeamSpeak 3 시작

분류에서Dev

Error installing ubuntu server 14:04 / 15:04

분류에서Dev

Ubuntu Server에 Teamspeak 클라이언트 설치

분류에서Dev

Ubuntu 14.04 LTS에 Teamspeak 3을 설치하는 방법

분류에서Dev

teamspeak3 설치 시도

분류에서Dev

How can I dual boot Ubuntu and Windows 10 but have my PC boot into windows without prompting me at start up

분류에서Dev

How to start a script file on boot?

분류에서Dev

Teamspeak 설치 및 TeamSpeak3 .desktop 파일 생성

분류에서Dev

How to setup of Raspberry Pi 3 onboard WiFi for Ubuntu Server with 'netplan'?

분류에서Dev

Ubuntu Server Very Slow Boot up

분류에서Dev

How to get the boot time of Ubuntu?

분류에서Dev

How to start an application at boot time or as a service

분류에서Dev

How to setup a PXE boot server?

분류에서Dev

Ubuntu guest boot fails to raise network interfaces on host boot (auto-start)

분류에서Dev

How to start the OpenVPN client service on Ubuntu 15.04

분류에서Dev

Ubuntu Snappy Core RPi3 model 3 boot failure

분류에서Dev

how to start mailman server in test mode

분류에서Dev

How to have procmail start ftp server

분류에서Dev

How to run a website that uses npm to start the server

분류에서Dev

Ubuntu Server 18.04.1: mount raid 1 as /boot partition

분류에서Dev

Ubuntu server 16.04 won't boot after installation

분류에서Dev

How to install Ubuntu on MacBook Pro as Dual Boot?

분류에서Dev

Double Ubuntu, How to specify which one to boot

분류에서Dev

How to run "fsck -y" on next boot in Ubuntu

분류에서Dev

How to dual-boot Windows and Ubuntu?

분류에서Dev

How to boot a Linux system without graphical server

분류에서Dev

How to start command on boot in Fedora 26 to reverse scroll mouse?

분류에서Dev

우분투 15.04를 실행하지 않는 Teamspeak 3 .sh 파일

Related 관련 기사

  1. 1

    Ubuntu 17.04의 TeamSpeak

  2. 2

    TeamSpeak 3 시작

  3. 3

    Error installing ubuntu server 14:04 / 15:04

  4. 4

    Ubuntu Server에 Teamspeak 클라이언트 설치

  5. 5

    Ubuntu 14.04 LTS에 Teamspeak 3을 설치하는 방법

  6. 6

    teamspeak3 설치 시도

  7. 7

    How can I dual boot Ubuntu and Windows 10 but have my PC boot into windows without prompting me at start up

  8. 8

    How to start a script file on boot?

  9. 9

    Teamspeak 설치 및 TeamSpeak3 .desktop 파일 생성

  10. 10

    How to setup of Raspberry Pi 3 onboard WiFi for Ubuntu Server with 'netplan'?

  11. 11

    Ubuntu Server Very Slow Boot up

  12. 12

    How to get the boot time of Ubuntu?

  13. 13

    How to start an application at boot time or as a service

  14. 14

    How to setup a PXE boot server?

  15. 15

    Ubuntu guest boot fails to raise network interfaces on host boot (auto-start)

  16. 16

    How to start the OpenVPN client service on Ubuntu 15.04

  17. 17

    Ubuntu Snappy Core RPi3 model 3 boot failure

  18. 18

    how to start mailman server in test mode

  19. 19

    How to have procmail start ftp server

  20. 20

    How to run a website that uses npm to start the server

  21. 21

    Ubuntu Server 18.04.1: mount raid 1 as /boot partition

  22. 22

    Ubuntu server 16.04 won't boot after installation

  23. 23

    How to install Ubuntu on MacBook Pro as Dual Boot?

  24. 24

    Double Ubuntu, How to specify which one to boot

  25. 25

    How to run "fsck -y" on next boot in Ubuntu

  26. 26

    How to dual-boot Windows and Ubuntu?

  27. 27

    How to boot a Linux system without graphical server

  28. 28

    How to start command on boot in Fedora 26 to reverse scroll mouse?

  29. 29

    우분투 15.04를 실행하지 않는 Teamspeak 3 .sh 파일

뜨겁다태그

보관