mr-guard / dayz-server-manager Goto Github PK
View Code? Open in Web Editor NEWA server installer and watch-dog for dayz standalone with built-in Discord and RCon bot
License: MIT License
A server installer and watch-dog for dayz standalone with built-in Discord and RCon bot
License: MIT License
@mr-guard Hi.
It doesn't work, it opens and says it can't see the server and shuts down
Video: https://drive.google.com/file/d/16aaLsB2Yz8YEQY8HfQb9RVZsg1b9A_nd/view?usp=sharing
when will be the next update to the manager
Hi! The map is not displayed in the web browser, can you help solve the problem? Map chernarusplus.
@mr-guard
I have this error, help me please
I tried setting
"serverLaunchParams": [-ip 192.168.1.117],
This resulted in invalid json, so I tried
"serverLaunchParams": ["-ip 192.168.1.117"],
This resulted in valid json, however, the ip would not bind to my local address. It was still binding to 0.0.0.0 when checked through netstat. This makes it add the launch parameter with quotes around it and I think in order for it to bind successfully to a specific ip perhaps it needs to be specified before -port, meaning you'd have to add a provision for the -ip parameter into your configuration. Maybe I'm just doing it incorrectly, please let me know! Thank you.
Hello, everything is working fine, but I want to know is there a way to set up 2 servers on 1 manager, or I need to make 1 manager per each server.
And what is "Please use force_install_dir logon" - am installing it okey, and all working, but Im keep getting that massage upon start.
The console is just left with press a key to continue
Good afternoon.
The config and the exe file itself were copied to the folder with the server.
Renamed the config. Configured the config correctly.
When you run the exe file, it just opens for 1-2 seconds and closes.
The config is configured correctly, the antivirus is disabled, and it has been launched as administrator.
What could be the problem?
Been on windows 10 and 11.
Sorry for the translation.
What is the recommended way to setup the WebUI so I can access it from other laptops and such?
Hello!
To avoid getting the "rate limit exceeded" error on steam (servers with big workshop list have that issue pretty often)
I believe you could use the "anonymous" user with no password on steamcmd, this user can download workshop items with no rate limit I think.
And for the server install/download, keep your regular steam username/password.
The manager connect and login one time for each mod to check or download the update on the start process.
If you have a lot of mods it connects a lot of times in one minute. That result in a temporary ban of the account.
Is any way of avoit that? i get banned everytime i run an update.
@2022-03-27T18:46:38.719Z | IMPORTANT | Manager | Starting DZSM Version: 2.1.1
@2022-03-27T18:46:38.721Z | IMPORTANT | Config | Trying to read config at: C:\Users\Wendy\Desktop\server-manager\build\server-manager.json
@2022-03-27T18:46:38.723Z | IMPORTANT | Config | Successfully read config
@2022-03-27T18:46:38.724Z | INFO | Database | Database Setup: node 14.17.0 : v83-win32-x64
@2022-03-27T18:46:39.310Z | IMPORTANT | Requiremen |
Firewall rules were not found.
You can add the rules manually or by running the following command in a elevated command promt:
netsh firewall add allowedprogram C:\Users\Wendy\Desktop\server-manager\build\DayZServer\DayZServer_x64.exe DayZ ENABLE
@2022-03-27T18:46:40.370Z | IMPORTANT | Manager | Initially checking SteamCMD, Server Installation and Mods. Please wait. This may take some minutes...
@2022-03-27T18:46:40.371Z | IMPORTANT | SteamCMD | Checking/Installing SteamCMD
Redirecting stderr to 'C:\Users\Wendy\Desktop\server-manager\build\SteamCMD\logs\stderr.txt'
[ 0%] 正在检查可用更新...
[----] 正在验证安装...
Steam Console Client (c) Valve Corporation - version 1648077083
-- type 'quit' to exit --
Loading Steam API...OK
Redirecting stderr to 'C:\Users\Wendy\Desktop\server-manager\build\SteamCMD\logs\stderr.txt'
[ 0%] 正在检查可用更新...
[----] 正在验证安装...
Steam Console Client (c) Valve Corporation - version 1648077083
-- type 'quit' to exit --
Loading Steam API...OK
Logging in user 'az238131f1s4' to Steam Public...OK
Waiting for client config...OK
Waiting for user info...OK
Please use force_install_dir before logon!
Update state (0x5) verifying install, progress: 12.13 (13700360 / 112911848)
Update state (0x5) verifying install, progress: 17.37 (491317144 / 2828919141)
Update state (0x5) verifying install, progress: 41.39 (1170768221 / 2828919141)
Update state (0x5) verifying install, progress: 66.82 (1890367285 / 2828919141)
Update state (0x5) verifying install, progress: 92.43 (2614665368 / 2828919141)
Success! App '223350' fully installed.
@2022-03-27T18:46:56.438Z | IMPORTANT | REST | App listening on the http://127.0.0.1:2313
@2022-03-27T18:47:17.502Z | ERROR | Manager | connect ETIMEDOUT 69.171.229.11:443 [
Error: connect ETIMEDOUT 69.171.229.11:443
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16) {
errno: -4039,
code: 'ETIMEDOUT',
syscall: 'connect',
address: '69.171.229.11',
port: 443,
request: ClientRequest {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: true,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: false,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: 0,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
socket: [TLSSocket],
_header: 'GET /api/v7/gateway HTTP/1.1\r\n' +
'Host: discordapp.com\r\n' +
'Authorization: ***\r\n' +
'User-Agent: DiscordBot (https://github.com/discordjs/discord.js, 11.6.4) Node.js/v14.17.0\r\n' +
'Accept-Encoding: gzip, deflate\r\n' +
'Connection: keep-alive\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: noopPendingOutput],
agent: [Agent],
socketPath: undefined,
method: 'GET',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/api/v7/gateway',
_ended: false,
res: null,
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'discordapp.com',
protocol: 'https:',
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
}
}
]
Press any key to continue . . .
My server won't start up after doing a simple message xml change. I only use Notepad++ and I've validated the xml to ensure the xml is correct. I've recently removed mods and still no luck.
I entered my login details to start the server manager and it keeps failing. I have logged in manually with the steamCMD and logged in with no issues but it still says invalid password even changed the password.
Hello, this is a fantastic piece of software and thank you very much for making it. I'm having an issue with the server manager not being able to start the DayZ server itself, I can start the DayZ server from a batch script and the server manager will see it and manage it but then the server manager cannot manage restarts, which is something I'm after. Here is what the console looks like (It just keeps saying "Server not found." unless I manually start the server via my batch script):
@2022-10-24T22:45:23.324Z | IMPORTANT | Manager | Starting DZSM Version: 2.1.1
@2022-10-24T22:45:23.339Z | IMPORTANT | Config | Trying to read config at: C:\dayzserver\server-manager.json
@2022-10-24T22:45:23.339Z | IMPORTANT | Config | Successfully read config
@2022-10-24T22:45:23.339Z | INFO | Database | Database Setup: node 14.17.0 : v83-win32-x64
@2022-10-24T22:45:24.605Z | IMPORTANT | Manager | Initially checking SteamCMD, Server Installation and Mods. Please wait. This may take some minutes...
@2022-10-24T22:45:24.605Z | IMPORTANT | SteamCMD | Checking/Installing SteamCMD
Redirecting stderr to 'C:\steamcmd\logs\stderr.txt'
[ 0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation - version 1666144101
-- type 'quit' to exit --
Loading Steam API...OK
@2022-10-24T22:45:26.621Z | IMPORTANT | REST | App listening on the http://127.0.0.1:8080
@2022-10-24T22:45:26.621Z | WARN | Discord | Not starting discord bot, because no bot token was provided
@2022-10-24T22:45:26.621Z | IMPORTANT | Monitor | Starting to watch server
@2022-10-24T22:45:26.636Z | IMPORTANT | Manager | Server Manager initialized successfully
@2022-10-24T22:45:26.636Z | IMPORTANT | Manager | Waiting for first server monitor tick..
@2022-10-24T22:45:26.636Z | IMPORTANT | RCON | Listening on 0.0.0.0:52110
@2022-10-24T22:45:26.761Z | IMPORTANT | Monitor | Server not found. Starting...
@2022-10-24T22:45:26.792Z | INFO | Monitor | Writing server cfg
@2022-10-24T22:45:57.371Z | WARN | Monitor | Detected possible server crash. Restarting...
@2022-10-24T22:45:57.371Z | IMPORTANT | Monitor | Server not found. Starting...
@2022-10-24T22:45:57.417Z | INFO | Monitor | Writing server cfg
@2022-10-24T22:46:29.042Z | WARN | Monitor | Detected possible server crash. Restarting...
@2022-10-24T22:46:29.042Z | IMPORTANT | Monitor | Server not found. Starting...
@2022-10-24T22:46:29.074Z | INFO | Monitor | Writing server cfg
@2022-10-24T22:47:00.621Z | WARN | Monitor | Detected possible server crash. Restarting...
@2022-10-24T22:47:00.621Z | IMPORTANT | Monitor | Server not found. Starting...
@2022-10-24T22:47:00.668Z | INFO | Monitor | Writing server cfg
@2022-10-24T22:47:32.309Z | WARN | Monitor | Detected possible server crash. Restarting...
@2022-10-24T22:47:32.309Z | IMPORTANT | Monitor | Server not found. Starting...
@2022-10-24T22:47:32.341Z | INFO | Monitor | Writing server cfg
@2022-10-24T22:48:03.887Z | WARN | Monitor | Detected possible server crash. Restarting...
@2022-10-24T22:48:03.887Z | IMPORTANT | Monitor | Server not found. Starting...
@2022-10-24T22:48:03.934Z | INFO | Monitor | Writing server cfg
And here is my server-manager.json:
{
"instanceId": "dayz",
"loglevel": 1,
"admins": [
{
"userId": "admin",
"userLevel": "admin",
"password": "ADMIN PASS"
}
],
"webPort": 8080,
"publishWebServer": false,
"discordBotToken": "",
"discordChannels": [],
"experimentalServer": false,
"serverPath": "C:/dayzserver",
"serverExe": "DayZServer_x64.exe",
"serverPort": 2302,
"serverCfgPath": "serverDZ.cfg",
"profilesPath": "DayZServerprofiles",
"battleyePath": "",
"rconPassword": "RCON PASS",
"rconPort": 2306,
"localMods": [
"@CF",
"@TraderPlus",
"@Free Helicopters",
"@Mortys Weapons",
"@Land Rover Defender 110",
"@Instant Flag",
"@ChernarusRP AE86",
"@Jeep Cherokee 1984",
"@GunnerTruckOshkosh",
"@Dayz Navigation",
"@SimpleAutorun",
"@BasicMap",
"@MiniMap",
"@Care Packages",
"@CodeLock",
"@MMG Base Storage",
"@MMG - Mightys Military Gear",
"@CarCover",
"@Ear-Plugs",
"@Modified Hunger and Hydration",
"@Killfeed","@InventoryPlus",
"@BaseBuildingPlus",
"@Unlimited Stamina",
"@Breachingcharge",
"@VPPNotifications",
"@VPPAdminTools",
"@Basic Territories",
"@COCAs_NoVehicleDamageMOD",
"@Unknown Ghillie Mod",
"@SchanaParty"
],
"serverMods": [],
"doLogs": true,
"adminLog": true,
"netLog": true,
"freezeCheck": true,
"filePatching": false,
"scriptDebug": false,
"scrAllowFileWrite": false,
"limitFPS": -1,
"cpuCount": -1,
"serverLaunchParams": [],
"serverProcessPollIntervall": 30000,
"backupPath": "backups",
"backupMaxAge": 7,
"steamCmdPath": "C:/steamcmd",
"steamUsername": "STEAM USER",
"steamPassword": "STEAM PASS",
"steamWorkshopPath": "Workshop",
"steamWsMods": [],
"updateModsBeforeServerStart": false,
"updateModsOnStartup": false,
"updateServerBeforeServerStart": false,
"updateServerOnStartup": false,
"linkModDirs": false,
"copyModDeepCompare": false,
"events": [],
"metricPollIntervall": 10000,
"metricMaxAge": 2592000,
"hooks": [],
"serverCfg": {
"hostname": "Server Name",
"maxPlayers": 60,
"motd": [],
"motdInterval": 1,
"password": "SERVER PASS",
"passwordAdmin": "ADMIN PASS",
"enableWhitelist": 0,
"BattlEye": 1,
"verifySignatures": 2,
"forceSameBuild": 1,
"guaranteedUpdates": 1,
"allowFilePatching": 0,
"steamQueryPort": 2305,
"maxPing": 200,
"speedhackDetection": 1,
"disableVoN": 0,
"vonCodecQuality": 20,
"disable3rdPerson": 0,
"disableCrosshair": 0,
"disableBaseDamage": 0,
"disableContainerDamage": 0,
"disableRespawnDialog": 0,
"respawnTime": 5,
"enableDebugMonitor": 0,
"disablePersonalLight": 1,
"lightingConfig": 0,
"serverTime": "SystemTime",
"serverTimeAcceleration": 4,
"serverNightTimeAcceleration": 16,
"serverTimePersistent": 1,
"loginQueueConcurrentPlayers": 5,
"loginQueueMaxPlayers": 500,
"simulatedPlayersBatch": 20,
"multithreadedReplication": 1,
"networkRangeClose": 20,
"networkRangeNear": 150,
"networkRangeFar": 1000,
"networkRangeDistantEffect": 4000,
"defaultVisibility": 1375,
"defaultObjectViewDistance": 1375,
"instanceId": 1,
"storeHouseStateDisabled": false,
"storageAutoFix": 1,
"timeStampFormat": "Short",
"logAverageFps": 30,
"logMemory": 30,
"logPlayers": 30,
"logFile": "server_console.log",
"adminLogPlayerHitsOnly": 0,
"adminLogPlacement": 0,
"adminLogBuildActions": 0,
"adminLogPlayerList": 0,
"Missions": {
"DayZ": {
"template": "dayzOffline.chernarusplus"
}
},
"enableCfgGameplayFile": 1
}
}
Hello, have a such problem when starting mod with space in name, wrote:
| ERROR | SteamCMD | Mod Link for @Name-mod was not found
The current program only has a single exe program. Can you release the web file of the management page to the directory where the program is located? In this way, users in different countries can manually modify the page and translate it, so as to support multilingual environment
Described as follows:
It's my problem or not, need help, plz
Hello, if it's not too much to ask, could you insert instructions for running the server other than the already compiled version? to run directly through vscode?
Can I leave a discord channel? I don't know how to use the process
Nothing is displayed after opening the EXE for a second. What should I do? Please help me!
I got this error with clear server
@2022-09-06T06:30:51.911Z | WARN | Monitor | Detected possible server crash. Restarting...
@2022-09-06T06:30:51.911Z | IMPORTANT | Monitor | Server not found. Starting...
@2022-09-06T06:30:51.920Z | ERROR | Monitor | Error during server monitor loop [
Error: EBUSY: resource busy or locked, open 'C:\DayZ\Vanilla\DayZServer@DayZServerManager\addons\Scripts.pbo'
at Object.openSync (fs.js:498:3)
at Object.openSync (pkg/prelude/bootstrap.js:661:32)
at Object.writeFileSync (fs.js:1524:35)
at Paths.copyFromPkg (C:\snapshot\dayz-server-manager\dist\util\paths.js:73:16)
at Paths.copyFromPkg (C:\snapshot\dayz-server-manager\dist\util\paths.js:67:22)
at Paths.copyFromPkg (C:\snapshot\dayz-server-manager\dist\util\paths.js:67:22)
at Paths.copyFromPkg (C:\snapshot\dayz-server-manager\dist\util\paths.js:67:22)
at IngameReport. (C:\snapshot\dayz-server-manager\dist\services\ingame-report.js:106:24)
at Generator.next ()
at C:\snapshot\dayz-server-manager\dist\services\ingame-report.js:8:71 {
errno: -4082,
syscall: 'open',
code: 'EBUSY',
path: 'C:\DayZ\Vanilla\DayZServer\@DayZServerManager\addons\Scripts.pbo'
}
]
First of all, I congratulate you on the development of the tool. I've had it "on" 24 hours a day for more than a year and the problems I've had are almost always related to the game or steamcmd but not to the manager.
That being said, I want to propose, if the code is updated, and if it is possible to add a small functionality:
The reason for this is that, in cases where the manager is not used and the server is executed through a batch file in the traditional way, when the server performs the restart process, tasks such as deleting logs, file renaming (for randomizing traders and dynamic events) and other tasks that qheny you are using the manager is not possible since it runs the game directly.
If it was possible to define a series of batch files, I say batch because it is the most basic and simple, but it could be any type of script. And also a timeout between executions, or a stdout, so it is possible to add or remove maintenance scripts that run before the manager starts the game again during the reboot process.
I don't know if I explained myself well, but it would be great to add a functionality of this type.
Thank you and again congratulations for the great job.
Hey, so i hosted my server before without any "tools" like this, just basic start.bat etc. everything where workin fine.
now i found this awesome manager here (iam for real, u did a great job with that)
and now i got the problem that i cant find my server anymore. any ideas? :D
there is no way to add or change your rcon port
Hey guys! How can i launch some .bat right before the server start? i didn't find some information about it
So i put all the mod in @modname but the dayz server open without any mod, but on the dzlauncher its shows the mod names
Hello there. First off, thanks for developing this tool, I appreciate it a lot. I'm setting up a new server for friends and everything appears to work fine, though I've seen this error a couple of times after a couple dozen manual/scheduled restarts:
@2022-01-26T13:00:52.559Z | INFO | SteamCMD | Skipping copy of mod (1559212036) dir because its already up to date
@2022-01-26T13:00:52.788Z | INFO | SteamCMD | Skipping copy of mod (1828439124) dir because its already up to date
@2022-01-26T13:00:52.789Z | INFO | SteamCMD | Skipping copy of mod (1597140327) dir because its already up to date
@2022-01-26T13:00:52.789Z | INFO | SteamCMD | Skipping copy of mod (1602372402) dir because its already up to date
@2022-01-26T13:00:52.790Z | INFO | SteamCMD | Skipping copy of mod (1891132304) dir because its already up to date
@2022-01-26T13:00:52.792Z | INFO | SteamCMD | Copying @Winter-Deer-Isle key ASC_WinterDeerIsle.bikey
@2022-01-26T13:00:52.793Z | INFO | SteamCMD | Copying @VPPAdminTools key VPP.bikey
@2022-01-26T13:00:52.794Z | INFO | SteamCMD | Copying @CF key Jacob_Mango_V3.bikey
@2022-01-26T13:00:52.796Z | INFO | SteamCMD | Copying @Winter-Chernarus key Crazymike_winterchernarus.bikey
@2022-01-26T13:00:52.799Z | INFO | SteamCMD | Copying @DeerIsle key deerisle45.bikey
@2022-01-26T13:00:53.172Z | WARN | LogReader | Error reading ADM [
"size check for C:\\Servers\\DayZSADeerIsle\\DayZServer\\profiles\\DayZServer_x64.ADM failed: Error: ENOENT: no such file or directory, stat 'C:\\Servers\\DayZSADeerIsle\\DayZServer\\profiles\\DayZServer_x64.ADM'"
]
Press any key to continue . . .
Manual restart worked fine after encountering this error. Am not sure if this is a config issue on my end or an actual issue somewhere else. Thanks for reviewing.
Good, I would like to know how I could modify the amount of respawn, the time it has to appear and if you could put a better quality or the % that certain things come out
Thank you very much
Is there a way to add BEC to also start? (BattlEye-Extended-Controls)
Can we get a list of working rcon and admin commands for the discord bot?
Hi!
When you edit anything in the mpmission folder and restart the server it replaces everything that you have edited with the default values.
Hi, started getting this error today, am not sure if it's a steam issue or something related to the server manager:
@2022-02-01T03:48:37.529Z | IMPORTANT | Manager | Starting DZSM Version: 2.1.1
@2022-02-01T03:48:37.530Z | IMPORTANT | Config | Trying to read config at: C:\Servers\DayZSADeerIsle\server-manager.json
@2022-02-01T03:48:37.539Z | IMPORTANT | Config | Successfully read config
@2022-02-01T03:48:37.540Z | INFO | Database | Database Setup: node 14.17.0 : v83-win32-x64
@2022-02-01T03:48:37.788Z | IMPORTANT | Manager | Initially checking SteamCMD, Server Installation and Mods. Please wait. This may take some minutes...
@2022-02-01T03:48:37.788Z | IMPORTANT | SteamCMD | Checking/Installing SteamCMD
Redirecting stderr to 'C:\Servers\DayZSADeerIsle\SteamCMD\logs\stderr.txt'
[ 0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation - version 1642451655
-- type 'quit' to exit --
Loading Steam API...OK
Redirecting stderr to 'C:\Servers\DayZSADeerIsle\SteamCMD\logs\stderr.txt'
[ 0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation - version 1642451655
-- type 'quit' to exit --
Loading Steam API...OK
Logging in user 'Andymantium' to Steam Public...FAILED (Rate Limit Exceeded)
@2022-02-01T03:48:40.644Z | ERROR | SteamCMD | SteamCMD "+login MyUserID ****** +force_install_dir C:\Servers\DayZSADeerIsle\DayZServer +app_update 223350 validate +quit" failed [ { status: 5, stdout: '', stderr: '' } ]
@2022-02-01T03:48:40.646Z | ERROR | SteamCMD | Failed to update server
@2022-02-01T03:48:40.646Z | ERROR | Manager | Server installation failed [
Error: Server installation failed
at ManagerController.<anonymous> (C:\snapshot\dayz-server-manager\dist\control\manager-controller.js:168:35)
at Generator.next (<anonymous>)
at fulfilled (C:\snapshot\dayz-server-manager\dist\control\manager-controller.js:5:58)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
]
Press any key to continue . . .
Thanks
Hello!
Sorry for my English, I'm using a translator.
There is a problem with the display of Russian characters in the game ... there is some kind of limit on the number of characters, or I don’t know what ...
"params": [
"Here the text is in Russian letters..."
The message in the game is displayed partially ... if you write in English characters - everything is fine!
My server starts and shows running with 0 players. When I try to connect to the server it doesnt show anything under LAN in the launcher. I see options for changing the port in the config file but I dont see anywhere for the ip address. Its running on localhost so I assumed that it would just show up in the launcher but no luck. Does anyone know how to connect to it if it isnt coming up under LAN in the launcher? I also tried looking withing steam under view>servers>lan and still nothing. Any help would be appreciated! Thank you!
You have a replacement for prohibited signs. Add a ":" to this.
Mod example: https://steamcommunity.com/sharedfiles/filedetails/?id=1975926581 , this mod closes the application window without the error message "because the wrong mod folder is being created"
Every mod is asking for mobile authentification it does not cached so it is like unusable
Hello, you make awesome tool. But i have a problem. I can't monitoring server on map, no one vehicle or players i can't see.
When server start, in path @DayZServerManager creating new mod Scripts.pbo every time.
But inside this pbo i see only config.bin
When i try compile pbo from watcher_mod folder, and give it to server mod, i have error on start up, "Can't compile engine"
Can you check it?
Error log when i give pbo compiling by my self
`
Log D:\JNVanila\JNVanila\profiles\script_2021-10-11_04-10-39.log started at 11.10. 04:10:39
SCRIPT (E): @"DayZServerManager/Scripts/Common,-1": Path not found
SCRIPT (E): Can't compile "Engine" script module!
DayZServerManager/Scripts/Common: Path not found
`
Hi,players are not displayed on the map.
I replaced the old exe file with a new one. The map has appeared, but the players' location is not working.
You can grab the Process ID based off the port the server is running on since only it can be running on the port, here's an example:
var PortCheck = await spawn('powershell', [`$proc = Get-Process -Id (Get-NetUDPEndpoint -LocalPort ${config.port}).OwningProcess\n`, 'Write-Output $proc.Id\n']);
PortCheck.stdout.on('data', data => {
const PID = parseInt(data.toString().trim());
process.kill(PID), console.log(`Killed Process ${PID} running on port ${config.port}!`);
PortCheck.kill();
});
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.