fix(utils): now it can be successfully restarted when deployed as systemd service

- Add `getSystemdServiceName` function to get systemd service name.
- When detected as systemd sevice, use `systemctl restart` to restart the program then exit.
This commit is contained in:
2026-06-04 12:05:09 +08:00
parent 682aa1abb9
commit 5e9bdf02f9
4 changed files with 85 additions and 2 deletions
+3 -1
View File
@@ -70,10 +70,12 @@ For detailed API documentation, please see [docs/api.md](docs/api.md)
- [ ] Add per-proxy status display
- [ ] Add proxy edit submit action
- [ ] Add per-proxy status control
- [ ] Fix reboot failed when deployed as systemd service
- [x] Fix reboot failed when deployed as systemd service
- [x] Enhance speed of listing instances
- [x] Increase speed of fetching instance logs
- [x] Refactor systemd service log output method to local file
- [ ] Fix no log output in instanceDetail view
- [ ] Add update frp binary function
## License