dot

packages and services management
Log | Files | Refs | README

commit e50f95eb177ac34e739bf33c011f98021bdd83cc
parent 54d8d927e9f60bdb8198b9136dcd2603a88ef7e9
Author: Josuah Demangeon <mail@josuah.net>
Date:   Mon,  9 Apr 2018 10:38:13 +0200

tinc pid file in run directory

Diffstat:
Mpack/tinc/build | 2+-
Mrun/tinc/hosts/t470s | 17+++++++----------
Mrun/tinc/run | 2+-
Mrun/tinc/tinc-up | 6+++---
4 files changed, 12 insertions(+), 15 deletions(-)

diff --git a/pack/tinc/build b/pack/tinc/build @@ -4,7 +4,7 @@ --prefix="$PREFIX" \ --sbindir="$PREFIX/bin" \ --sysconfdir="$HOME/.config" \ - --localstatedir="$HOME/run/tinc" \ + --localstatedir="$HOME/var" \ --disable-lzo \ --disable-readline \ --disable-curses diff --git a/run/tinc/hosts/t470s b/run/tinc/hosts/t470s @@ -1,12 +1,9 @@ -Subnet = 172.16.55.1 - -Port = 12196 -----BEGIN RSA PUBLIC KEY----- -MIIBCgKCAQEAzowl65KHoAl3cLPlS2Z6FeUVEu03H957rgh7M+S7k21xW1PGC/Xh -msGm5+eGKvPbr80qMJ5DMaUOPjZDE8/+n3y01ltOSeEQuwgH2Cx1vbdWsnMdFAu2 -fMa/AMRNdRRDqKKF1rajOoafgOuVR+YKoks/vfYeBWCwNn7MTRQ/Lq8Mn8E0q/Dy -mbHWU4CLlB0e6QkZ/uA2psCrDSrKQ3zM1PFvlM+uCk66oBnWKjSNoHvvfG+AYX/k -jrkivS8J0UtYMXrWYiQOZWgmxGbnOoAE5wJkMeQwPiQJ3h08l1m3yVjC62n4YUD4 -LRyRDWCSSfxB5PV9RHYgexsq65xOzj6ubQIDAQAB +MIIBCgKCAQEAs9niVMBFaEjcK//FqmuLhtkpWP4xNiOyA3aVpyVBDg90uRwPQyMT +dINTXXucIAoQCIeGLARj/bY7aJN3kOjEC9FA/CnVxweKsRUq4nIARHl/Pu3EMp8x +GV/MPdjMuRztA1jr7Xmlg1l3/ZSM8cmK600X1PqzRVISzlCUbD3327j20+PSUWmZ +cgL3C9zYXGkbWTrB426m72ih61Pg8PzH7smGz5j2qyyooQEaxWmBwy898E4fJD1W +LxRjHSb66l7eaZRLGAqa9clAuZA5NauUme1hJPXl+9uht2ZO1QyyR/ubM9myqbbi +RmAGus2i4w6s5BY9BNVW/ikUdk+OZd2TrQIDAQAB -----END RSA PUBLIC KEY----- -Ed25519PublicKey = blA1II/aoRWKP8gzQPHWuHQH6qKHhZWIfvuZPA/9byM +Ed25519PublicKey = On4mriKdzhjvwQ40T8YKUihBwiN+zW70CXoFbiDs4KB diff --git a/run/tinc/run b/run/tinc/run @@ -4,4 +4,4 @@ debug="4" exec 2>&1 mkdir -p run -exec tincd -D -d "$debug" --config="$PWD" +exec tincd -D -d "$debug" --config="$PWD" --pidfile="$PWD/pid" diff --git a/run/tinc/tinc-up b/run/tinc/tinc-up @@ -2,10 +2,10 @@ case "$(uname)" in (*BSD) - ifconfig "${INTERFACE}" "$(tinc get subnet)" netmask 255.255.255.0 + ifconfig "$INTERFACE" "$(tinc get subnet)" netmask 255.255.255.0 ;; (Linux) - ip link set "${INTERFACE}" up - ip addr add "$(tinc get subnet | sed q)/24" dev "${INTERFACE}" + ip link set "$INTERFACE" up + ip addr add "$(tinc get subnet | sed q)/24" dev "$INTERFACE" ;; esac