A service stop followed by a restart does not restart services

Bug #2012630 reported by Alfonso Sanchez-Beato
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
New
Undecided
Alfonso Sanchez-Beato

Bug Description

I have a snap defined with snap.yaml:

base: core22
confinement: strict
grade: stable
name: test-svc
version: 0.1
summary: Test svc
description: |
  Test svc
architectures:
- amd64
apps:
  testsvc:
    command: bin/testsvc
    daemon: simple

Stopping and restarting does not start the service again:

$ sudo snap install --dangerous test-svc_0.1_amd64.snap
test-svc 0.1 installed
$ pgrep -f test-svc
2573
$ sudo snap stop test-svc
Stopped.
$ sudo snap restart test-svc
Restarted.
$ pgrep -f test-svc
$

Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.