mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-13 07:34:36 +01:00
Implement MongoDB autostart and GC watching
Windows's implementation of enable_grasscutter_watcher works just fine. systemd is pretty much standart for handling services. No "sudo" or "pkexec" is needed, systemd does that automatically, but since the user needs to authenticate, we can’t await service_status.
This commit is contained in:
@@ -216,7 +216,7 @@ export default class ServerLaunchSection extends React.Component<IProps, IState>
|
||||
process: proc_name || grasscutter_jar,
|
||||
})
|
||||
// Check if MongoDB is running and start it if not
|
||||
await invoke('service_status', { service: 'MongoDB' })
|
||||
invoke('service_status', { service: 'MongoDB' })
|
||||
}
|
||||
|
||||
let jarFolder = config.grasscutter_path
|
||||
|
||||
Reference in New Issue
Block a user