Skip to content

Commit

Permalink
feat[close #169]: pre-run vso shell at boot if already initialized
Browse files Browse the repository at this point in the history
fix: wrong path
  • Loading branch information
mirkobrombin committed Jul 20, 2024
1 parent 528b04f commit 1517c6e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
9 changes: 9 additions & 0 deletions includes.container/usr/lib/systemd/user/vso-pre-run.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Unit]
Description=VSO Shell Pre-Run
After=default.target

[Service]
ExecStart=/usr/bin/vso run -n -- ls || true

[Install]
WantedBy=default.target
8 changes: 3 additions & 5 deletions modules/00-vanilla-system-operator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ modules:
packages:
- dpkg-dev
- ifstat
- name: vso-tasks-rotation-autostart
type: shell
commands:
- mkdir /usr/lib/systemd/user/default.target.wants
- ln -s /usr/lib/systemd/user/vso-tasks-rotation.service /usr/lib/systemd/user/default.target.wants/vso-tasks-rotation.service
- name: adwdialog
type: dpkg-buildpackage
source:
Expand Down Expand Up @@ -74,3 +69,6 @@ modules:
commands:
- ln -s /usr/lib/systemd/system/vanilla-updates.service /etc/systemd/system/multi-user.target.wants/vanilla-updates.service
- ln -s /usr/lib/systemd/system/vanilla-updates.timer /etc/systemd/system/timers.target.wants/vanilla-updates.timer
- mkdir -p /usr/lib/systemd/user/default.target.wants
- ln -s /usr/lib/systemd/user/vso-pre-run.service /usr/lib/systemd/user/default.target.wants/vso-pre-run.service
- ln -s /usr/lib/systemd/user/vso-tasks-rotation.service /usr/lib/systemd/user/default.target.wants/vso-tasks-rotation.service

0 comments on commit 1517c6e

Please sign in to comment.