#!/bin/bash # # teamspeak Start/Stop/Restart Teamspeak service # # chkconfig: 2345 98 8 # description: Start/Stop/Restart the Teamspeak voice server # install: chkconfig --add teamspeak # uninstall: chkconfig --del teamspeak # Location of the 'su' command su=/bin/su # Username of the teamspeak user user=teamspeak # Directory of the teamspeak server. This can be absolute eg: # /home/teamspeak/ # or relative (meaning if your directory is in the home directory of ts and is called ts3 # then you just need ts3, as is the default. dir=/home/teamspeak/ # The start script (I use the current default exec=./ts3server_startscript.sh # See how we were called. case"$1"in start) $su - $user -c "cd $dir;$exec start" ;; stop) $su - $user -c "cd $dir;$exec stop" ;; restart) $su - $user -c "cd $dir;$exec restart" ;; status) $su - $user -c "cd $dir;$exec status" ;; *) echo $"Usage: $0 {start|stop|restart|status}" exit 2 esac exit 0
Но скорее всего libmariadb.so.2 будет не найдена. Потому что в стандартной сборке MariaDB под CentOS этой библиотеки нет. Но по счастью она есть в дистрибутиве сервера, в папке redist.
С правами пользователя root создаём ссылку на эту библиотеку.