From 283d26d831f9a4571821909ea1659e7764e410a7 Mon Sep 17 00:00:00 2001 From: crater2150 Date: Sun, 20 Aug 2023 17:20:10 +0200 Subject: [PATCH] Unify logging --- bloop/log/run | 5 +---- log | 5 +++++ picom/log/run | 1 + pipewire-pulse/log/run | 5 +---- pipewire/log/run | 5 +---- syncthing/log/run | 5 +---- synergys/log/run | 3 +-- wireplumber/log/run | 1 + wireplumber/run | 3 +++ xss-lock/log/run | 1 + 10 files changed, 16 insertions(+), 18 deletions(-) mode change 100755 => 120000 bloop/log/run create mode 100755 log create mode 120000 picom/log/run mode change 100755 => 120000 pipewire-pulse/log/run mode change 100755 => 120000 pipewire/log/run mode change 100755 => 120000 syncthing/log/run mode change 100755 => 120000 synergys/log/run create mode 120000 wireplumber/log/run create mode 100755 wireplumber/run create mode 120000 xss-lock/log/run diff --git a/bloop/log/run b/bloop/log/run deleted file mode 100755 index cc5cfb3..0000000 --- a/bloop/log/run +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -LOGDIR=$HOME/.local/log/bloop -mkdir -p $LOGDIR -exec svlogd -ttt $LOGDIR diff --git a/bloop/log/run b/bloop/log/run new file mode 120000 index 0000000..a6e7493 --- /dev/null +++ b/bloop/log/run @@ -0,0 +1 @@ +../../log \ No newline at end of file diff --git a/log b/log new file mode 100755 index 0000000..972e98e --- /dev/null +++ b/log @@ -0,0 +1,5 @@ +#!/bin/zsh +SERVICE=${0:a:h:h:t} +LOGDIR=$HOME/.local/log/$SERVICE +mkdir -p $LOGDIR +exec svlogd -ttt $LOGDIR diff --git a/picom/log/run b/picom/log/run new file mode 120000 index 0000000..a6e7493 --- /dev/null +++ b/picom/log/run @@ -0,0 +1 @@ +../../log \ No newline at end of file diff --git a/pipewire-pulse/log/run b/pipewire-pulse/log/run deleted file mode 100755 index d9ff948..0000000 --- a/pipewire-pulse/log/run +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/zsh -LOGDIR=$HOME/.local/log/pipewire-pulse -mkdir -p $LOGDIR -exec svlogd -ttt $LOGDIR diff --git a/pipewire-pulse/log/run b/pipewire-pulse/log/run new file mode 120000 index 0000000..a6e7493 --- /dev/null +++ b/pipewire-pulse/log/run @@ -0,0 +1 @@ +../../log \ No newline at end of file diff --git a/pipewire/log/run b/pipewire/log/run deleted file mode 100755 index 5e2aa5e..0000000 --- a/pipewire/log/run +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -LOGDIR=$HOME/.local/log/pipewire -mkdir -p $LOGDIR -exec svlogd -ttt $LOGDIR diff --git a/pipewire/log/run b/pipewire/log/run new file mode 120000 index 0000000..a6e7493 --- /dev/null +++ b/pipewire/log/run @@ -0,0 +1 @@ +../../log \ No newline at end of file diff --git a/syncthing/log/run b/syncthing/log/run deleted file mode 100755 index 04eec15..0000000 --- a/syncthing/log/run +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -exec logger -t syncthing - diff --git a/syncthing/log/run b/syncthing/log/run new file mode 120000 index 0000000..a6e7493 --- /dev/null +++ b/syncthing/log/run @@ -0,0 +1 @@ +../../log \ No newline at end of file diff --git a/synergys/log/run b/synergys/log/run deleted file mode 100755 index 62156ab..0000000 --- a/synergys/log/run +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -exec tee ~/.synergy/log diff --git a/synergys/log/run b/synergys/log/run new file mode 120000 index 0000000..a6e7493 --- /dev/null +++ b/synergys/log/run @@ -0,0 +1 @@ +../../log \ No newline at end of file diff --git a/wireplumber/log/run b/wireplumber/log/run new file mode 120000 index 0000000..a6e7493 --- /dev/null +++ b/wireplumber/log/run @@ -0,0 +1 @@ +../../log \ No newline at end of file diff --git a/wireplumber/run b/wireplumber/run new file mode 100755 index 0000000..88dde8c --- /dev/null +++ b/wireplumber/run @@ -0,0 +1,3 @@ +#!/bin/sh +sv check pipewire >/dev/null || exit 1 +exec wireplumber diff --git a/xss-lock/log/run b/xss-lock/log/run new file mode 120000 index 0000000..a6e7493 --- /dev/null +++ b/xss-lock/log/run @@ -0,0 +1 @@ +../../log \ No newline at end of file