cronolog.org
flexible web log rotation
HOME
DOWNLOAD
FEATURES
USAGE
FAQ
BLOG
KNOWN BUGS
SECURITY
PATCHES
USERS
TO DO
HISTORY
LINKS
FEEDBACK
MAILING LIST
ADVERTISING

support cronolog development



Google   HELP


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [CRONOLOG]: Cronolog and ssh



Did you just recently upgraded ssh? This is the default behavior with ssh for
the past few years(openssh at least). Do what you normally do, but then append
this to the end of your command:

< /dev/null > /dev/null 2>&1 &

So for example, if you had:

/usr/sbin/httpd -f /path/to/httpd.conf 

You would make it:

/usr/sbin/httpd -f /path/to/httpd.conf < /dev/null > /dev/null 2>&1 & 

Then you can exit correctly. The problem is if ssh knows there is a program
attached to the session it wont close the session. 

But I myself never have had this problem with apache since it detaches from
the terminal correctly(and all of mine use cronolog). But the above will fix
your problem. You can also make a system-wide change, but I forget the specifi

You can add something to /etc/bashrc(assuming you are using linux) but I didnt
like that route - I just made sure any apps we make detach properly.

Kyle



Copyright © 1996-2004 Andrew Ford and Ford & Mason Ltd