|
|
#1 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Aug 2007
Location: Switzerland
Posts: 320
Reputation: 146
|
Hello,
Here's a small script I just wrote, a Start/Stop script for GNU/Linux. Usage ./samp.sh start ./samp.sh stop ./samp.sh restart ./samp.sh status Download http://roflc.at/7G How to "install" it 1. Connect to your Linux server. 2. Create a new file (samp.sh) 3. Paste the script in the file you just created. 4. Change the config (see below). 5. Save the file. 6. Make it executable (chmod +x samp.sh). 7. Use it ! Config DIR = The directory where your SA-MP Server is located. EXEC = The name of your SA-MP Server executable. SCREENNAME = The name for the SA-MP Screen. DESC = Description or name of your SA-MP Server. My other Bash scripts I created a collection of Bash scripts for SA-MP on GitHub, take a look at them (more coming) : http://roflc.at/7H Enjoy
|
|
|
|
|
|
#2 |
|
Guest
Posts: n/a
|
Sorry, but it's totally better using the linux screen / nohup / run on background commands than bash, since you spend the same time doing the commands.
It can be usefull for some people, but not for other people. |
|
|
|
#3 | |
|
Huge Clucker
![]() ![]() ![]() Join Date: Aug 2007
Location: Switzerland
Posts: 320
Reputation: 146
|
Quote:
But yeah, maybe the script isn't useful for people who know how to manage a Linux server but if you setup a SSH access for a SA-MP Server for someone who is not really familiar with command line interface, it's much easier to tell him how to use this script instead of three different commands (screen, kill, ps) with lot of parameters. |
|
|
|
|
|
|
#4 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Feb 2011
Location: Europe, Croatia
Posts: 363
Reputation: 66
|
Simple, but useful
|
|
|
|
|
|
#5 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Mar 2012
Location: Earth
Posts: 1,865
Reputation: 485
|
This is good.
|
|
|
|
|
|
#6 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jan 2012
Location: Right in front of forum.sa-mp.com
Posts: 1,144
Reputation: 127
|
With this a CP for a samp server kinda seems useless
|
|
|
|
|
|
#7 |
|
Big Clucker
![]() ![]() Join Date: Jan 2012
Location: British Solider
Posts: 197
Reputation: 22
|
Wow cheers dude needed this!
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Tool/Web/Other] Bash script to install SA-MP server | linuxthefish | Tools and Files | 16 | 14/05/2012 07:22 PM |
| [Bash script]Install a new SA-MP server easily | R@f | Server Support | 5 | 20/10/2011 08:24 PM |
| PHP Start/Stop Script | xinul | Server Support | 1 | 03/06/2009 08:56 PM |
| [Tool/Web/Other] [PHP] How to start / stop Linux Server | d123 | Server Support | 6 | 11/05/2009 08:00 AM |