From 9fe937d7647898497abe626c12ffa4b4f7900133 Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Wed, 15 Jun 2016 14:41:49 +0200 Subject: [PATCH] Add liacs proxy service. --- .gitignore | 3 +++ install.sh | 3 ++- systemd/.config/systemd/user/liacs-proxy.service | 10 ++++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 systemd/.config/systemd/user/liacs-proxy.service diff --git a/.gitignore b/.gitignore index 1377554..da7707e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ *.swp + +# Ignore the installation of services for now. +systemd/.config/systemd/user/default.target.wants diff --git a/install.sh b/install.sh index 141091b..02839a3 100755 --- a/install.sh +++ b/install.sh @@ -20,7 +20,7 @@ installIfAvailable() { fi if commandAvailable $COMMAND; then - echo "Installing configuration files for $COMMAND…" + echo "Installing configuration files for $PACKAGE…" stow -t $HOME $PACKAGE fi } @@ -45,6 +45,7 @@ installIfAvailable vim installIfAvailable zsh installIfAvailable sqlite3 sqlite installIfAvailable tmux +installIfAvailable systemctl systemd # Install all XDG compatible packages echo "Installing remaining packages…" diff --git a/systemd/.config/systemd/user/liacs-proxy.service b/systemd/.config/systemd/user/liacs-proxy.service new file mode 100644 index 0000000..2651cea --- /dev/null +++ b/systemd/.config/systemd/user/liacs-proxy.service @@ -0,0 +1,10 @@ +[Unit] +Description=SOCKS proxy to the liacs network + +[Service] +Type=simple +ExecStart=/usr/bin/ssh -N -D 12345 gold.liacs.nl +Restart=on-failure + +[Install] +WantedBy=default.target