aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2015-06-30 22:03:57 +0200
committerDuncaen <mail@duncano.de>2015-06-30 22:05:22 +0200
commitc4f8f34092c19e0dd8659c3f64d4c5d12ed9f6df (patch)
tree05318b712438fce768a611b6d05b3e1025ce20ad
parentc5b63c8a4d5f44b4486aee2dce97a4f21003b865 (diff)
downloaddotfiles-c4f8f34092c19e0dd8659c3f64d4c5d12ed9f6df.tar.gz
add user services
-rwxr-xr-xinstall.sh6
l---------service/syncthing1
l---------service/x1
-rwxr-xr-xsv/syncthing/log/run3
-rw-r--r--sv/syncthing/log/supervise/lock0
-rw-r--r--sv/syncthing/log/supervise/pid1
-rw-r--r--sv/syncthing/log/supervise/stat1
-rw-r--r--sv/syncthing/log/supervise/statusbin0 -> 20 bytes
-rwxr-xr-xsv/syncthing/run4
-rw-r--r--sv/x/down0
10 files changed, 17 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index 3fabc8d..4b57b15 100755
--- a/install.sh
+++ b/install.sh
@@ -33,5 +33,11 @@ ln -sfv $dotfiles/gitconfig /home/$user/.gitconfig
rm -v /home/$user/bin
ln -sfv $dotfiles/bin /home/$user/bin
+rm -rfv /home/$user/sv
+ln -sfv $dotfiles/sv /home/$user/sv
+
+rm -rfv /home/$user/service
+ln -sfv $dotfiles/service /home/$user/service
+
# install plugins
# vim +PlugInstall +qall
diff --git a/service/syncthing b/service/syncthing
new file mode 120000
index 0000000..a0354c4
--- /dev/null
+++ b/service/syncthing
@@ -0,0 +1 @@
+../sv/syncthing \ No newline at end of file
diff --git a/service/x b/service/x
new file mode 120000
index 0000000..54ac6c2
--- /dev/null
+++ b/service/x
@@ -0,0 +1 @@
+../sv/x \ No newline at end of file
diff --git a/sv/syncthing/log/run b/sv/syncthing/log/run
new file mode 100755
index 0000000..a8197ba
--- /dev/null
+++ b/sv/syncthing/log/run
@@ -0,0 +1,3 @@
+#!/bin/mksh
+
+exec logger -t syncthing
diff --git a/sv/syncthing/log/supervise/lock b/sv/syncthing/log/supervise/lock
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/sv/syncthing/log/supervise/lock
diff --git a/sv/syncthing/log/supervise/pid b/sv/syncthing/log/supervise/pid
new file mode 100644
index 0000000..3a64e64
--- /dev/null
+++ b/sv/syncthing/log/supervise/pid
@@ -0,0 +1 @@
+27533
diff --git a/sv/syncthing/log/supervise/stat b/sv/syncthing/log/supervise/stat
new file mode 100644
index 0000000..f5bdd21
--- /dev/null
+++ b/sv/syncthing/log/supervise/stat
@@ -0,0 +1 @@
+run
diff --git a/sv/syncthing/log/supervise/status b/sv/syncthing/log/supervise/status
new file mode 100644
index 0000000..32718a6
--- /dev/null
+++ b/sv/syncthing/log/supervise/status
Binary files differ
diff --git a/sv/syncthing/run b/sv/syncthing/run
new file mode 100755
index 0000000..889a641
--- /dev/null
+++ b/sv/syncthing/run
@@ -0,0 +1,4 @@
+#!/bin/mksh
+
+exec 2>&1
+exec syncthing -logflags 0
diff --git a/sv/x/down b/sv/x/down
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/sv/x/down