hotsanic |
Subversion Repositories: |
Rev 1 | Rev 30 | |
---|---|---|
Line 294... | Line 294... | |
close STDIN; |
close STDIN; | |
close STDOUT; |
close STDOUT; | |
close STDERR; |
close STDERR; | |
if (open(DEVTTY, "/dev/tty")) { ioctl(DEVTTY,0x20007471,0); close DEVTTY; } |
if (open(DEVTTY, "/dev/tty")) { ioctl(DEVTTY,0x20007471,0); close DEVTTY; } | |
open STDIN,"/dev/null"; |
open STDIN,"/dev/null"; | |
open STDOUT,">>".$CONFIG{LOGDIR}."/HotSaNIC.log"; |
open STDOUT,">>/tmp/log"; | |
# open STDOUT,">>/dev/null"; | ||
open STDERR,">&STDOUT"; |
open STDERR,">&STDOUT"; | |
chdir "/"; |
chdir "/"; | |
fork && exit 0; |
fork && exit 0; | |
print "\n\n----------------------------------------\n"; |
print "\n\n----------------------------------------\n"; | |
print time,": archiver successfully forked into background and running on PID $$\n"; |
print time,": archiver successfully forked into background and running on PID $$\n"; |