Windows is now supported.
This commit is contained in:
1 parent
f7b5428c60
commit
c3b3c56322
2 files changed
+9
-2
No files matched your search
@@ -307,6 +307,14 @@ our $STARTTIME = time;
|
|||||||
say '* Auto successfully started at '.POSIX::strftime('%Y-%m-%d %I:%M:%S %p', localtime).q{.};
|
say '* Auto successfully started at '.POSIX::strftime('%Y-%m-%d %I:%M:%S %p', localtime).q{.};
|
||||||
alog 'Auto successfully started.';
|
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.
|
# Fork into the background if not in debug mode.
|
||||||
if (!$DEBUG) {
|
if (!$DEBUG) {
|
||||||
say '*** Becoming a daemon...';
|
say '*** Becoming a daemon...';
|
||||||
|
|||||||
@@ -62,8 +62,7 @@ if ($OSNAME =~ /dos/i) {
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
elsif ($OSNAME eq "MSWin32") {
|
elsif ($OSNAME eq "MSWin32") {
|
||||||
print "Microsoft Windows is not supported. Support is planned for the future.\r\n";
|
print "OK\r\n";
|
||||||
exit;
|
|
||||||
}
|
}
|
||||||
elsif ($OSNAME eq "NetWare") {
|
elsif ($OSNAME eq "NetWare") {
|
||||||
print "NetWare is not supported.\r\n";
|
print "NetWare is not supported.\r\n";
|
||||||
|
|||||||
Reference in new issue
Block a user