Talk:Run as a daemon or service: Difference between revisions

m
→‎Bad definition?: Capitals are not optional in good writing!
m (→‎Bad definition?: Capitals are not optional in good writing!)
Line 2:
 
It's probably better to describe a daemon as a process that runs in the background and independent of a user's login session, if anything.
: trueTrue, iI'll try to integrate that into the description.--[[User:EMBee|eMBee]] 08:56, 17 November 2011 (UTC)
"Not connected to a terminal" isn't quite it, a daemon could print to a tty all day if it wants to.
: yesYes, but only if it opens the tty manually. itIt should otherwise be able to run without a tty being present.--[[User:EMBee|eMBee]] 08:56, 17 November 2011 (UTC)
Also, why do you want a daemon process to both detach from stdout ''and'' print to stdout? Wouldn't it be saner to have it directly write to a file to begin with? --[[User:Ledrug|Ledrug]] 08:23, 17 November 2011 (UTC)
: iI want it to detach from the stdout that is connected to the users terminal, and write to a file as if it were stdout. redirectingRedirecting stdout is the sanest way to achieve that because the internals of the program and the libraries used can continue to write to what looks like stdout. ifIf iI open a file in the daemon itself, and use that, iI have to go out of my way to make sure that everywhere iI have output the file is used. iI have to make that file globally accessible or pass it around as a variable. thereThere may be languages/situations where this is the better option, but iI would not say that it is always better or saner.--[[User:EMBee|eMBee]] 08:56, 17 November 2011 (UTC)
Anonymous user