Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#3 closed enhancement (fixed)

Remove screen dependency

Reported by: Alloc Owned by: Alloc
Priority: major Component:
Keywords: Cc:

Description (last modified by Alloc)

Instead of using screen to allow access to the console output write stdout/errout to log file:

ssd ... --exec /bin/bash -- -c "$DAEMON $DAEMON_ARGS > $LOGFILE 2>&1"

Disadvantage: wine won't be stopped on ssd stop as it would only kill bash!

Better:

ssd ... --startas /bin/bash -- -c "exec $DAEMON $DAEMON_ARGS > $LOGFILE 2>&1"

Or, with --no-close:

ssd ... --no-close --exec $DAEMONWINE -- $BINARYPATH/$BINARYNAME $OPTS > $LOGFILE 2>$1

Also see: Stack Overflow - How can I log the stdout of a process started by start-stop-daemon?

Change History (5)

comment:1 Changed 7 years ago by Alloc

  • Component Scripts deleted

comment:2 Changed 7 years ago by Alloc

  • Description modified (diff)

comment:3 Changed 7 years ago by Alloc

  • Description modified (diff)

comment:4 Changed 7 years ago by alloc

  • Resolution set to fixed
  • Status changed from new to closed

In 9:

Fix #1, #2, #3, #5; Refs #4, #6: WD works for save path, not for some logs

comment:5 Changed 7 years ago by Alloc

  • version set to 1
Note: See TracTickets for help on using tickets.