TDPS As a Service - Upstart Skript

Questions and information regarding the TeamDrive Personal Server - Fragen und Informationen zum TeamDrive Personal Server

TDPS As a Service - Upstart Skript

Postby SFu » 23 Nov 2013, 12:50

Hello,

as mentioned in my post to run TeamDrive Personal Server via INIT-Skript, I created an upstart script.
This was the reason to create the following how-to.

First of all, you need to copy the URLs manually, I am not allowed to use "BBCode:URL" anymore.

So, let us start to setup our TeamDrive Personal Server as a Service:

Part 1: Download and Installation
First of all, logon to your server and - if not already done - open a command box (bash).
Time by time you can download a new version of TDPS from http://www.teamdrive.com/de/download_server.html so please take a look an update the following command:
Code: Select all
wget http://s3-eu-west-1.amazonaws.com/s3download.teamdrive.net/TDPS/1.1.061/linux/TeamDrivePersonalServerLinux_1.1.062.tar.gz


next we'll extract the file
Code: Select all
tar xzf TeamDrivePersonalServerLinux_1.1.061.tar.gz


After that, we will move the new directory tdpsd into /opt, you can also choose /var or /usr/bin or /usr/local/bin or ...
Code: Select all
mv tdps/ /opt/tdpsd


Now, take a moment, create your MD5 Password Hash and configure the tdps.config, to finish the installation :-)


Part 2: User and startscript
Next we will need a deamon user, "tdpsd", without a homedrive and without a shell. If you need to have a special UID add -u xyz to the command
Code: Select all
sudo useradd -s /bin/false -d /bin/null tdpsd


now set a password
Code: Select all
sudo passwd tdpsd


as we will start TDPS with that user account we should make it the owner of the directory and files
Code: Select all
sudo chown -R tdpsd:tdpsd /opt/tdpsd/


next we will need the upstart scripts, you can download them here: http://www.cuivienen.name/downloads/tdpsd.zip or directly on your server
Code: Select all
sudo wget http://www.cuivienen.name/downloads/tdpsd.zip


Extract the ZIP-File.
The scripts should run out-of-the-box, the only parts you may need to edit are the User and/or the path of tdpsd in ./default/tdpsd.
# TeamDrive install path
TDPSD_PATH="/opt/tdpsd"
# user to run TeamDrive server as
TDPSD_USER="tdpsd"
# parameters to pass to TeamDrive startup script
TDPSD_PARAMS=""


Now, let us move the scripts to /etc/default and /etc/init
Code: Select all
sudo mv ./default/tdpsd /etc/default
sudo mv ./init/tdpsd.conf /etc/init


...and set the required rights
Code: Select all
sudo chmod 755 /etc/default/tdpsd
sudo chmod 755 /etc/init/tdpsd.conf



Part 3: start/stop
Now we are in the final phase :-)
To start TDPSD we just need to run
Code: Select all
sudo service tdpsd start


To stop it's just
Code: Select all
sudo service tdpsd stop


Voilá - FINISHED :D

Greeting

SFu
SFu
 
Posts: 23
Joined: 20 Apr 2010, 09:36

Re: How-To: TD Personal Server as a service - Upstart Skrip

Postby SFu » 25 May 2014, 16:15

Script fixed
SFu
 
Posts: 23
Joined: 20 Apr 2010, 09:36

Re: How-To: TD Personal Server as a service - Upstart Skrip

Postby SFu » 05 Dec 2014, 09:21

Hi AnnieLouro,

what is the question?

Cheers,

Steffen
SFu
 
Posts: 23
Joined: 20 Apr 2010, 09:36

Re: How-To: TD Personal Server as a service - Upstart Skrip

Postby Kenneth » 05 Dec 2014, 14:19

AnnieLouro wrote:As long as you keep the effort to dig
But my ability is limited, please forgive me!
But this is a big group, I hope your question can be answered quickly!


________________________________
If you want to know more things about the FIFA 15 Coins and Buy FIFA 15 Coins
Go to our home page:https://www.mmo7d.com/FIFA-15.Gold



I think that was just a SPAM message
Kenneth
 
Posts: 1237
Joined: 29 Aug 2012, 15:11


Return to TeamDrive Personal Server (TDPS)

Who is online

Users browsing this forum: No registered users and 4 guests