#3 closed enhancement (fixed)
Remove screen dependency
Reported by: | Christian Illy | Owned by: | Christian Illy |
---|---|---|---|
Priority: | major | Component: | |
Keywords: | Cc: |
Description (last modified by )
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 by , 11 years ago
Component: | Scripts |
---|
comment:2 by , 11 years ago
Description: | modified (diff) |
---|
comment:3 by , 11 years ago
Description: | modified (diff) |
---|
comment:4 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:5 by , 11 years ago
version: | → 1 |
---|
Note:
See TracTickets
for help on using tickets.
In 9: