Start-up script error

Discussion in 'Systems Administration' started by Electro2560, Apr 22, 2017.

  1. Hello,

    I've put this in my /etc/rc.d/init.d/ folder and have given it permissions 755 and set it's owner to root. I've also added it as a service. However, when I reboot my VPS, it fails to run properly and 'systemctl status teamspeak1' gives me this. I can manually start the server as the teamspeak user just fine.
    Here's some output from journalctl -xe

    Edit: I'm running centos 7

    Thanks in advance!
    #1 Electro2560, Apr 22, 2017
    Last edited: Apr 22, 2017
  2. Your best bet would be using crontab by using the @reboot annotation

    So for example:
    Code (Text):

    @reboot cd /path/to/teamspeak/ start
    • Like Like x 1
  3. Do you want the application to autostart once the server has booted?
  4. Hello,

    Have you tried adding your wanted command to rc.local ?
    Code (Text):
    vim /etc/rc.local
    with content like the following:

    Code (Text):

    # This is executed at each multiuser runlevel
    /path/to/my/ || exit 1
    exit 0
    Using init.d is obsolete and should be avoided