Install L2JServer in Ubuntu Server Version

Have you created a useful tool? or Do you want to get help building one? This is the right place!
Forum rules
READ NOW: L2j Forums Rules of Conduct
Dasipodide
Posts: 2
Joined: Mon Aug 29, 2016 10:37 am

Re: Install L2JServer in Ubuntu Server Version

Post by Dasipodide »

Yes I know this, probably I didn't explain my problem in the right way.

I want to see the various echo command inside the script, something like

Code: Select all

Game Server shutted down. Shutting down the Game Java Server
and so on.

Look at that portion of the script

Code: Select all

#!/bin/sh

# Change here your home directory for Lineage server. Absolute path
base=/srv/L2J_Server/

stop_l2parallel() {
        #Stop Game Server script and java
        if [ -n "$(pgrep -f GameServer_loop.sh)" ]; then
                pkill -f GameServer_loop.sh
                echo Script del Game Server fermato
        else
                echo =========================================
                echo Script del Game Server non in esecuzione!
                echo =========================================
        fi
As you can see I have a lot of echo commands inside, but when I run

Code: Select all

service l2server stop
in shell nothing appears, just freeze for a little (the time needed to work the stop process) and than the normal prompt

Code: Select all

xxxxxxxx@vps287812:~# service l2server stop
xxxxxxxx@vps287812:~#
Sacrifice
Advanced User
Advanced User
Posts: 1026
Joined: Thu Aug 14, 2014 6:31 am

Re: Install L2JServer in Ubuntu Server Version

Post by Sacrifice »

To do that, you need the graphical environment (probably nots your case) and would leave the window open with the tail of each log.
Sacrifice
Advanced User
Advanced User
Posts: 1026
Joined: Thu Aug 14, 2014 6:31 am

Re: Install L2JServer in Ubuntu Server Version

Post by Sacrifice »

Check this share and comment how go
https://bitbucket.org/snippets/Sacrifice78/eoER9
User avatar
ShinichiYao
Advanced User
Advanced User
Posts: 262
Joined: Tue Jan 12, 2016 3:53 am

Re: Install L2JServer in Ubuntu Server Version

Post by ShinichiYao »

Sacrifice wrote: Thu Sep 29, 2016 6:05 pm Check this share and comment how go
https://bitbucket.org/snippets/Sacrifice78/eoER9
Link is dead. I also want to know how to display the log message instead of running in the background.
Sacrifice
Advanced User
Advanced User
Posts: 1026
Joined: Thu Aug 14, 2014 6:31 am

Re: Install L2JServer in Ubuntu Server Version

Post by Sacrifice »

This in real time

Code: Select all

tail -f /home/xxxx/l2jserver/game/log/stdout.log
This all log till command invocation

Code: Select all

cat /home/xxxx/l2jserver/game/log/stdout.log
`xxxx` is the user name....
Post Reply