Skip to content

Instantly share code, notes, and snippets.

@gpedro
Created May 8, 2014 09:58
Show Gist options
  • Save gpedro/7f7160a90ced2fe24eec to your computer and use it in GitHub Desktop.
Save gpedro/7f7160a90ced2fe24eec to your computer and use it in GitHub Desktop.
OTServ Signals
[ CUSTOM FLAGS
Project Name
The Forgotten Server
Version
0.4.0_DEV
Codenamed
Crying Damson
License
GNU GPLv3
Forum
http://otland.net/
]
[ How to use SIGNALS
[ Note
Signals are designed for Linux, so if you are Windows user,
you may skip reading it, as you won't have use of them.
]
Signals are nothing else than signals sent to a software when using
'kill' command. To use signals, you have to type:
kill -SIGNAL processId
or
killall -SIGNAL processName
[ Example
killall -HUP theforgottenserver; will save the server.
]
]
[ Available signal actions
HUP
* Saves server
TRAP
* Cleans map
CHLD
* Refreshes map
USR1
* Closes server
USR2
* Open the server
CONT
* Reloads everything
QUIT
* Saves server and shut it down
TERM
* Shuts down the server
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment