autostart - Ubuntu 10.10 rc.local ignores half the command? -
i have java program on autostart in rc.local
(in ubuntu /etc/init.d/rc.local
) reason in ubuntu on autostart command execute java , log output half works, while works expected in command line , works on rhel distro (in rc.local , command line). command im trying execute is:
java -server -cp '/foo/bar/' someserver &> '/foo/bar/log.txt' &
at boot in ubuntu starts server , rewrites log.txt blank log, doesnt log more of output of server program... permissions set right.. not sure else into.. appreciated. thanks.
so here's answer :)
do:
command > some/logfile.txt 2>&1 &
rc.local
executed /bin/sh
not /bin/bash
, makes difference.
Comments
Post a Comment