Running a snap package as a service on Linux

Hello
Who can tell me how I can create a snap package so that when the Linux system starts, it starts automatically as a service

you simply add daemon: simple to the app definition in your snapcraft.yaml:

here is a very simple snap example that runs a small shell script on boot:

1 Like