[Tool/Web/Other] [Bash]Start/Stop script
#1

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
https://github.com/RafaelKeramidas/S...master/samp.sh

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) : https://github.com/RafaelKeramidas/SAMPScripts/


Enjoy
Reply


Messages In This Thread
[Bash]Start/Stop script - by R@f - 02.07.2012, 11:23
Re: [Bash]Start/Stop script - by next-studio|TheKiller - 02.07.2012, 11:26
Re: [Bash]Start/Stop script - by R@f - 02.07.2012, 13:09
Re: [Bash]Start/Stop script - by int3s0 - 02.07.2012, 14:33
Re: [Bash]Start/Stop script - by Lordzy - 02.07.2012, 14:43
Re: [Bash]Start/Stop script - by [UE]Milan - 02.10.2012, 11:38
Re: [Bash]Start/Stop script - by Kontrol - 28.11.2012, 02:05
Re: [Bash]Start/Stop script - by TheRunixx - 03.10.2013, 20:47

Forum Jump:


Users browsing this thread: 2 Guest(s)