From 3a560db96027600127a02df99d7aad8976571425 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 20 Jun 2017 11:38:03 +0200 Subject: [PATCH] initial checkin --- .config/systemd/user/.gitignore | 1 + .config/vcsh/hooks-available/systemd.post-run+enter | 9 +++++++++ .config/vcsh/hooks-enabled/post-enter.systemd | 1 + .config/vcsh/hooks-enabled/post-run.systemd | 1 + .gitignore.d/systemd | 13 +++++++++++++ 5 files changed, 25 insertions(+) create mode 100644 .config/systemd/user/.gitignore create mode 100755 .config/vcsh/hooks-available/systemd.post-run+enter create mode 120000 .config/vcsh/hooks-enabled/post-enter.systemd create mode 120000 .config/vcsh/hooks-enabled/post-run.systemd create mode 100644 .gitignore.d/systemd diff --git a/.config/systemd/user/.gitignore b/.config/systemd/user/.gitignore new file mode 100644 index 0000000..03aeabf --- /dev/null +++ b/.config/systemd/user/.gitignore @@ -0,0 +1 @@ +/default.target.wants/** diff --git a/.config/vcsh/hooks-available/systemd.post-run+enter b/.config/vcsh/hooks-available/systemd.post-run+enter new file mode 100755 index 0000000..fb09002 --- /dev/null +++ b/.config/vcsh/hooks-available/systemd.post-run+enter @@ -0,0 +1,9 @@ +#!/bin/sh + +cd ~/.config/systemd/user +git ls-files . | while read s; do + s=${s##*/} + echo Enabling systemd user service $s … + systemctl --user enable $s + systemctl --user start $s +done diff --git a/.config/vcsh/hooks-enabled/post-enter.systemd b/.config/vcsh/hooks-enabled/post-enter.systemd new file mode 120000 index 0000000..330b0eb --- /dev/null +++ b/.config/vcsh/hooks-enabled/post-enter.systemd @@ -0,0 +1 @@ +../hooks-available/systemd.post-run+enter \ No newline at end of file diff --git a/.config/vcsh/hooks-enabled/post-run.systemd b/.config/vcsh/hooks-enabled/post-run.systemd new file mode 120000 index 0000000..330b0eb --- /dev/null +++ b/.config/vcsh/hooks-enabled/post-run.systemd @@ -0,0 +1 @@ +../hooks-available/systemd.post-run+enter \ No newline at end of file diff --git a/.gitignore.d/systemd b/.gitignore.d/systemd new file mode 100644 index 0000000..2746922 --- /dev/null +++ b/.gitignore.d/systemd @@ -0,0 +1,13 @@ +* +!/.config +!/.config/systemd +!/.config/systemd/user +!/.config/systemd/user/.gitignore +!/.config/vcsh +!/.config/vcsh/hooks-available +!/.config/vcsh/hooks-available/systemd.post-run+enter +!/.config/vcsh/hooks-enabled +!/.config/vcsh/hooks-enabled/post-enter.systemd +!/.config/vcsh/hooks-enabled/post-run.systemd +!/.gitignore.d +!/.gitignore.d/systemd -- 2.39.5