{"id":17006134,"url":"https://github.com/mingweisamuel/srcds-init.d","last_synced_at":"2026-05-09T17:47:14.892Z","repository":{"id":25999247,"uuid":"29441699","full_name":"MingweiSamuel/SRCDS-init.d","owner":"MingweiSamuel","description":"A basic init.d script for Source Dedicated Servers (SRCDS)","archived":false,"fork":false,"pushed_at":"2015-02-17T22:04:29.000Z","size":176,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-27T10:43:30.078Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MingweiSamuel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-18T21:25:12.000Z","updated_at":"2015-02-17T22:04:29.000Z","dependencies_parsed_at":"2022-08-06T08:01:31.191Z","dependency_job_id":null,"html_url":"https://github.com/MingweiSamuel/SRCDS-init.d","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MingweiSamuel%2FSRCDS-init.d","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MingweiSamuel%2FSRCDS-init.d/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MingweiSamuel%2FSRCDS-init.d/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MingweiSamuel%2FSRCDS-init.d/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MingweiSamuel","download_url":"https://codeload.github.com/MingweiSamuel/SRCDS-init.d/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244945591,"owners_count":20536296,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T05:05:03.841Z","updated_at":"2026-05-09T17:47:09.848Z","avatar_url":"https://github.com/MingweiSamuel.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SRCDS-init.d\nA basic init.d script for Source Dedicated Servers (SRCDS)\n\n## About\nThese scripts provide init.d functionality for `srcds` servers.\nThere are two files, `srcds.bash` and `tf2`.\n\n - `tf2` is the configuration file, and should be renamed and configured for the desired server type. This will go in the `/etc/init.d` folder\n - `srcds.bash` is the script. There only needs to be one copy of this even if there are multiple configurations (TF2, CS:GO, Insurgency, etc.). This should be placed in a convienient location, or `/etc/init.d/` if required.\n\n### Usage\n\nThis assumes you have the `service` program. If you do not, run the script directly (ie `/etc/init.d/tf2`).\n\nThere are 5 different commands:\n - `start` (`# service tf2 start`) - starts the server if it is not running\n - `stop` (`# service tf2 stop`) - stops the server if it is running\n - `restart` (`# service tf2 restart`) - stops the server if it is running and restarts the server\n - `status` (`# service tf2 status`) - prints whether the server is running\n - `rcon` (`# service tf2 rcon \u003ccommand\u003e`) - sends `\u003ccommand\u003e` to the server and prints the reply. If the server is slow to respond the reply may not show up properly.\n\n## Installation\n1. Clone this repository to a temporary directory. Example:  \n`$ mkdir /tmp/srcds`  \n`$ cd /tmp/srcds`  \n`$ git clone https://github.com/Lugtech/SRCDS-init.d.git`\n1. Copy the files to their desired locations. Example:  \n`# cp tf2 /etc/init.d/`  \n`# cp srcds.bash /etc/init.d`\n1. Edit/rename the configuration file (`tf2`). There are comments describing each setting.\n1. Register the init.d script. Example (Debian/Ubuntu):  \n`# update-rc.d tf2 defaults`\nThe server should now start on boot.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmingweisamuel%2Fsrcds-init.d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmingweisamuel%2Fsrcds-init.d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmingweisamuel%2Fsrcds-init.d/lists"}