Skip to content

Commit

Permalink
feat: systemd unit for apx-vso-pico
Browse files Browse the repository at this point in the history
Adds a systemd unit for managing apx-vso-pico, which automatically
starts the container on startup and shuts it down on poweroff. When
enabled by the user (new installations should do by default with
first-setup), this service avoids having to wait for the container
to start when opening a terminal for the first time, as well as
drastically reduces the poweroff time.
  • Loading branch information
matbme committed May 23, 2024
1 parent 4bf4607 commit dd31b06
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions includes.container/etc/systemd/user/apx-vso-pico.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[Unit]
Description=VSO Pico Container
Wants=default.target
After=default.target

[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n
Restart=on-failure
TimeoutStopSec=10
ExecStart=/.system/usr/bin/podman start apx-vso-pico
ExecStop=/.system/usr/bin/podman stop \
-t 5 apx-vso-pico
ExecStopPost=/.system/usr/bin/podman stop \
-t 5 apx-vso-pico
Type=forking

[Install]
WantedBy=default.target

0 comments on commit dd31b06

Please sign in to comment.