Commit Graph
7 Commits
Author SHA1 Message Date
NanamiAdmin 61e4ad6ecc fix(os): improve service status checking reliability
- Handle specific exit codes for systemd services (inactive/unknown states)
- Add better error handling for init.d services
- Move string conversion before error checking for consistency
- Update log levels for better service state visibility
2026-03-26 16:20:21 +08:00
NanamiAdmin 92a0e24db7 refactor(frpc): restructure instance management and config handling
- Move instance-related structs and functions to config.go
- Remove serverAddr, serverPort, and authMethod from database schema
- Implement new config parsing and encoding with nested key support
- Update service management to use instanceID instead of username/name
- Add GetServiceNameByInstanceID helper function
- Update API documentation for auth.method field change
2026-03-25 20:00:34 +08:00
NanamiAdmin da729b44ff feat(service): add auto-start management for services
Implement setBootAtStart and removeBootAtStart functions to handle service auto-start configuration separately from service creation/removal. Update handlers to use these new functions for better control of boot behavior. The changes support Windows, systemd and init.d systems.
2026-03-25 11:05:17 +08:00
NanamiAdmin 3a00f5d6a5 refactor(instance): change instance deletion to use ID instead of name
- Update DBRemoveFrpcInstance to use instanceID for deletion
- Modify DeleteInstanceHandler to accept and validate instanceID
- Improve error messages for invalid instanceID format
- Update logging to use instanceID instead of instanceName
2026-03-25 10:49:30 +08:00
NanamiAdmin 802a726464 feat(frpAct): add Windows/Systemd/Init.d service boot control. BUT WINDOWS STILL HAS BUGS AND LINUX HAS NOT BEEN TESTED. 2026-03-24 23:23:34 +08:00
NanamiAdmin 541f881825 feat(windows): add windows boot service support
- Add registry-based boot service creation for Windows
- Update detectInitSystem to handle Windows platform
2026-03-04 22:17:56 +08:00
NanamiAdmin 29011c2fb4 refactor(service): move boot service functions to os.go
Extract service management functions from frpAct.go to new os.go file for better code organization and maintainability. Also update README.md to document supported platforms.
2026-03-04 13:46:55 +08:00