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{.};
|
||||
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...';
|
||||
|
||||
Reference in new issue
Block a user