From d47dd5aa3882aea1a8eff4fb9faa4881274559dc Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 17 Jan 2023 12:45:46 +0100 Subject: Unify things and rename things --- old/lindy/systemd/alps-inria.service | 15 +++++++++++++++ old/lindy/systemd/dino-background.service | 14 ++++++++++++++ old/lindy/systemd/rclone-mount@.service | 15 +++++++++++++++ old/lindy/systemd/scream-client.service | 16 ++++++++++++++++ old/lindy/systemd/secure-tunnel@.service | 16 ++++++++++++++++ 5 files changed, 76 insertions(+) create mode 100644 old/lindy/systemd/alps-inria.service create mode 100644 old/lindy/systemd/dino-background.service create mode 100644 old/lindy/systemd/rclone-mount@.service create mode 100644 old/lindy/systemd/scream-client.service create mode 100644 old/lindy/systemd/secure-tunnel@.service (limited to 'old/lindy/systemd') diff --git a/old/lindy/systemd/alps-inria.service b/old/lindy/systemd/alps-inria.service new file mode 100644 index 0000000..c338b4f --- /dev/null +++ b/old/lindy/systemd/alps-inria.service @@ -0,0 +1,15 @@ +[Unit] +Description=Alps mail server for zimbra.inria.fr +After=network.target + +[Service] +WorkingDirectory=/home/lx/Deuxfleurs/alps +ExecStart=/usr/bin/go run ./cmd/alps -theme alps imaps://zimbra.inria.fr:993 smtp://smtp.inria.fr:587 + +# Restart every >2 seconds to avoid StartLimitInterval failure +RestartSec=5 +Restart=always + +[Install] +WantedBy=default.target + diff --git a/old/lindy/systemd/dino-background.service b/old/lindy/systemd/dino-background.service new file mode 100644 index 0000000..2ccd4c3 --- /dev/null +++ b/old/lindy/systemd/dino-background.service @@ -0,0 +1,14 @@ +[Unit] +Description=Run Dino chat client in background +After=network.target + +[Service] +ExecStart=dino --gapplication-service + +# Restart every >2 seconds to avoid StartLimitInterval failure +RestartSec=5 +Restart=always + +[Install] +WantedBy=default.target + diff --git a/old/lindy/systemd/rclone-mount@.service b/old/lindy/systemd/rclone-mount@.service new file mode 100644 index 0000000..2f5a454 --- /dev/null +++ b/old/lindy/systemd/rclone-mount@.service @@ -0,0 +1,15 @@ +[Unit] +Description=Mount a directory using rclone +After=network.target + +[Service] +ExecStartPre=sh -c "fusermount -u /home/lx.nobackup/mnt/%i || exit 0" +ExecStart=/usr/bin/rclone mount --vfs-cache-mode minimal --cache-dir /home/lx/.cache/rclone/%i %i: /home/lx.nobackup/mnt/%i + +# Restart every >2 seconds to avoid StartLimitInterval failure +RestartSec=10 +Restart=always + +[Install] +WantedBy=default.target + diff --git a/old/lindy/systemd/scream-client.service b/old/lindy/systemd/scream-client.service new file mode 100644 index 0000000..164cf6b --- /dev/null +++ b/old/lindy/systemd/scream-client.service @@ -0,0 +1,16 @@ +[Unit] +Description=Stream audio from Scream +After=network.target + +[Service] +ExecStart=scream -o pulse -i virbr0 +LimitNICE=-11 +Nice=-11 + +# Restart every >2 seconds to avoid StartLimitInterval failure +RestartSec=5 +Restart=always + +[Install] +WantedBy=default.target + diff --git a/old/lindy/systemd/secure-tunnel@.service b/old/lindy/systemd/secure-tunnel@.service new file mode 100644 index 0000000..5054dd2 --- /dev/null +++ b/old/lindy/systemd/secure-tunnel@.service @@ -0,0 +1,16 @@ +[Unit] +Description=Setup a secure tunnel to %I +After=network.target + +[Service] +Environment="TARGET_PORT=22" +EnvironmentFile=/home/lx/.config/secure-tunnel/%i.conf +ExecStart=/usr/bin/ssh -NT -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -p ${TARGET_PORT} ${TUNNEL_DEF} ${TARGET} + +# Restart every >2 seconds to avoid StartLimitInterval failure +RestartSec=5 +Restart=always + +[Install] +WantedBy=default.target + -- cgit v1.2.3