mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-06 13:18:58 +00:00
chore: use a new uncancelled context for stopping corrosion service
This commit is contained in:
1 parent
614212a24c
commit
1b6130447f
2 files changed
+4
-1
No files matched your search
@@ -27,7 +27,7 @@ func (s *SystemdService) Start(ctx context.Context) error {
|
||||
return s.startOrRestart(ctx, "start")
|
||||
}
|
||||
|
||||
func (s *SystemdService) Stop(ctx context.Context) error {
|
||||
func (s *SystemdService) Stop(_ context.Context) error {
|
||||
if _, err := exec.Command("systemctl", "stop", s.Unit).Output(); err != nil {
|
||||
return fmt.Errorf("systemctl stop %s: %w", s.Unit, err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user