Phase 2: Rename critical files (ogp_api.php to gsp_api.php, logos, agent files)
Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
7f19731158
commit
4b771d498f
54 changed files with 102 additions and 102 deletions
25
_agent-linux/includes/gsp_agent.init.gentoo
Normal file
25
_agent-linux/includes/gsp_agent.init.gentoo
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#!/sbin/runscript
|
||||
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# GF: Config is in $agent_dir/Cfg/Config.pm
|
||||
|
||||
agent_dir=GSP_AGENT_DIR
|
||||
agent_user=OGP_USER
|
||||
|
||||
depend() {
|
||||
need net
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting Game Server Agent"
|
||||
start-stop-daemon --verbose --chdir $agent_dir --start --background --user $agent_user -e PWD="$agent_dir" --exec screen -d -m -t agent -c screenrc -S agent ./agent_run -pidfile agent_run.pid
|
||||
eend $? "Failed to start Game Server Agent"
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping Game Server Agent"
|
||||
start-stop-daemon --stop --quiet --pidfile $agent_dir/agent_run.pid
|
||||
eend $? "Failed to stop Game Server Agent"
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue