From 81e2a99af4a29d54246fc28b09d440bda8826dc1 Mon Sep 17 00:00:00 2001 From: nellfs Date: Thu, 20 Jun 2024 22:47:43 +0000 Subject: [PATCH] feat[close #136]: Add service for vso tasks rotation --- .../usr/lib/systemd/user/vso-tasks-rotation.service | 8 ++++++++ modules/00-vanilla-system-operator.yml | 5 +++++ 2 files changed, 13 insertions(+) create mode 100644 includes.container/usr/lib/systemd/user/vso-tasks-rotation.service diff --git a/includes.container/usr/lib/systemd/user/vso-tasks-rotation.service b/includes.container/usr/lib/systemd/user/vso-tasks-rotation.service new file mode 100644 index 0000000..9428e72 --- /dev/null +++ b/includes.container/usr/lib/systemd/user/vso-tasks-rotation.service @@ -0,0 +1,8 @@ +[Unit] +Description=VSO Tasks Rotation + +[Service] +ExecStart=/usr/bin/vso tasks rotate + +[Install] +WantedBy=multi-user.target diff --git a/modules/00-vanilla-system-operator.yml b/modules/00-vanilla-system-operator.yml index 523d637..0846d70 100644 --- a/modules/00-vanilla-system-operator.yml +++ b/modules/00-vanilla-system-operator.yml @@ -35,6 +35,11 @@ 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: