Page MenuHomeFeedback Tracker

Linux Server
Closed, ResolvedPublic

Description

I been looking for a solution for this all day and just wanted to report it. I have a sh script that runs my server. The problem is that when the server is in a screen the stderr will not log it makes a file but writes nothing inside this file. But when I take out the screen session and let it run in console of my Linux server it writes to the file. So my question is this a bug or can it be a user error?

Details

Severity
Tweak
Resolution
Open
Reproducibility
Always
Operating System
Linux x64
Operating System Version
Ubuntu 14.04.4 LTS
Category
Server
Steps To Reproduce

Sh Script With Screen and doesn't write to log

SCREENNAME=arma3
PORT=2302
PROFILENAME=a3wasteland
CONFIG=config.cfg
SERVERDIR=/home/steam/arma3/wasteland/
SERVERMOD=extDB2
LOGFILE=/home/steam/arma3/wasteland/logs/log.txt

cd $SERVERDIR
screen -AmS $SCREENNAME ./arma3server -name=$PROFILENAME -port=$PORT -config=$CONFIG >>$LOGFILE 2>&1

Additional Information

Sh Script With out Screen and writes to log

#SCREENNAME=arma3
PORT=2302
PROFILENAME=a3wasteland
CONFIG=config.cfg
SERVERDIR=/home/steam/arma3/wasteland/
SERVERMOD=extDB2
LOGFILE=/home/steam/arma3/wasteland/logs/log.txt

cd $SERVERDIR
./arma3server -name=$PROFILENAME -port=$PORT -config=$CONFIG >>$LOGFILE 2>&1

Event Timeline

ryan1161 changed Severity from None to Tweak.
ryan1161 changed Reproducibility from N/A to Always.
ryan1161 edited Additional Information. (Show Details)Jun 10 2016, 12:31 AM
ryan1161 edited Steps To Reproduce. (Show Details)
ryan1161 edited Additional Information. (Show Details)
dedmen closed this task as Resolved.May 18 2020, 11:25 AM
dedmen claimed this task.