snap daemons cant run reboot command
Bug #1744616 reported by
Jeremy Arr
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Confirmed
|
Medium
|
Unassigned |
Bug Description
In a snapcraft.yaml, if I create an app that is a simple daemon and within that app is a statement to reboot the machine, when the service is started it will fail to execute the statement and return in the journal:
"Running in chroot, ignoring request."
However if that app is not a daemon, and the app is run, then the reboot statement is executed successfully.
This has all been tested for snaps running in devmode with the shutdown interface connected.
To post a comment you must log in.
Please see https:/ /forum. snapcraft. io/t/running- systemd- commands- inside- a-snap/ 3591/3 for a little more context