aboutsummaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
Diffstat (limited to 'service')
-rwxr-xr-xservice/mpd18
-rwxr-xr-xservice/syncemail20
-rwxr-xr-xservice/syncthing19
3 files changed, 0 insertions, 57 deletions
diff --git a/service/mpd b/service/mpd
deleted file mode 100755
index f55722a..0000000
--- a/service/mpd
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/home/cynerd/.local/sbin/user-service.sh
-# vim: ft=sh
-
-description="Music player daemon"
-pidfile=".config/mpd/pid"
-
-status() {
- [ -f $pidfile ] || return 1
- kill -0 "$(cat $pidfile)" || return 1
-}
-
-start() {
- mpd ~/.config/mpd/mpd.conf
-}
-
-stop() {
- mpd --kill ~/.config/mpd/mpd.conf
-}
diff --git a/service/syncemail b/service/syncemail
deleted file mode 100755
index a42e380..0000000
--- a/service/syncemail
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/home/cynerd/.local/sbin/user-service.sh
-# vim: ft=sh
-
-description="Mail synchronization tool"
-pidfile="/tmp/syncemail-$(id -u).pid"
-
-status() {
- [ -f $pidfile ] || return 1
- kill -0 "$(cat $pidfile)" || return 1
-}
-
-start() {
- ~/.local/sbin/syncemail
-}
-
-stop() {
- PID="$(cat $pidfile)"
- kill $PID 2>/dev/null
- while kill -0 $PID 2>/dev/null; do sleep 1; done
-}
diff --git a/service/syncthing b/service/syncthing
deleted file mode 100755
index 8d0e009..0000000
--- a/service/syncthing
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/home/cynerd/.local/sbin/user-service.sh
-# vim: ft=sh
-
-description="Syncthing is an open, trustworthy and decentralized cloud storage system"
-pidfile="/tmp/syncthing-$USER.pid"
-logfile="/var/log/syncthing-$USER.log"
-
-status() {
- [ -f $pidfile ] || return 1
- kill -0 "$(cat $pidfile)" || return 1
-}
-
-start() {
- start-stop-daemon -S -bmp $pidfile -1 $logfile -2 $logfile -- syncthing -no-browser
-}
-
-stop() {
- start-stop-daemon -K -p $pidfile -x syncthing
-}