Jump to content

Limit disk space for each service


Dennis

Recommended Posts

  • 2 weeks later...

As far as i know the Linux Quota system uses Linux users / ldap.

Here we have the same userid for all the service files, so in OS level you have only 1 ( or two ) user (The owner of the files).

Your clients data are in database, so it's only possible if tcadmin developers implement it, but it's more difficult than the fast-dl sync.

My first idea would be a scheduled time, when your server checks everyones disk space.

But it would take a lot io process for it.

 

You can make that for yourself without mono, so you gain performance:

Write a shell script calculating the usage per clients, and take it to cronjob.

Link to comment
Share on other sites

I have never tried it but you should be able to do this:

- configure quotas on the partition where the game servers are created.

- configure your games with run as = user per service

- Create a script for the after created event that adds a quota for the user tcagame__svc${ThisService_ServiceId}

- You can create custom icons/actions to manage/view the quota from the control panel. http://help.tcadmin.com/Custom_Scripts

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Who's Online   0 Members, 0 Anonymous, 35 Guests (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use