Windows is now supported.

This commit is contained in:
Elijah Perrault committed 2011-02-26 23:16:32 -07:00
1 parent f7b5428c60
commit c3b3c56322
2 files changed
+9 -2

No files matched your search

+8
View File
@@ -307,6 +307,14 @@ our $STARTTIME = time;
say '* Auto successfully started at '.POSIX::strftime('%Y-%m-%d %I:%M:%S %p', localtime).q{.};
alog 'Auto successfully started.';
# If we're on Windows, disable forking.
if ($OSNAME =~ /win/i) {
if (!$DEBUG) {
say '!!! Forking unavailable (OS is Microsoft Windows), continuing in debug mode.';
$DEBUG = 1;
}
}
# Fork into the background if not in debug mode.
if (!$DEBUG) {
say '*** Becoming a daemon...';
+1 -2
View File
@@ -62,8 +62,7 @@ if ($OSNAME =~ /dos/i) {
exit;
}
elsif ($OSNAME eq "MSWin32") {
print "Microsoft Windows is not supported. Support is planned for the future.\r\n";
exit;
print "OK\r\n";
}
elsif ($OSNAME eq "NetWare") {
print "NetWare is not supported.\r\n";