summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--Makefile9
-rwxr-xr-xbin/svget2
-rwxr-xr-xbin/svkill2
-rwxr-xr-xbin/svstop2
-rwxr-xr-xbin/svup2
-rwxr-xr-xbin/update_mail2
-rwxr-xr-xservices/available/compton/log/run (renamed from services/compton/log/run)0
-rwxr-xr-xservices/available/compton/run (renamed from services/compton/run)0
-rwxr-xr-xservices/available/duplicati/log/run (renamed from services/duplicati/log/run)0
-rwxr-xr-xservices/available/duplicati/run (renamed from services/duplicati/run)0
-rwxr-xr-xservices/available/kuake/log/run (renamed from services/kuake/log/run)0
-rwxr-xr-xservices/available/kuake/run (renamed from services/kuake/run)0
-rwxr-xr-xservices/available/light-locker/log/run (renamed from services/light-locker/log/run)0
-rwxr-xr-xservices/available/light-locker/run (renamed from services/light-locker/run)0
-rwxr-xr-xservices/available/mpd/log/run (renamed from services/mpd/log/run)0
-rwxr-xr-xservices/available/mpd/run (renamed from services/mpd/run)0
-rwxr-xr-xservices/available/mpdscribble/log/run (renamed from services/mpdscribble/log/run)0
-rwxr-xr-xservices/available/mpdscribble/run (renamed from services/mpdscribble/run)0
-rwxr-xr-xservices/available/offlineimap/log/run (renamed from services/offlineimap/log/run)0
-rwxr-xr-xservices/available/offlineimap/run (renamed from services/offlineimap/run)0
-rwxr-xr-xservices/available/redshift/log/run (renamed from services/redshift/log/run)0
-rwxr-xr-xservices/available/redshift/run (renamed from services/redshift/run)0
-rwxr-xr-xservices/available/touchegg/log/run (renamed from services/touchegg/log/run)0
-rwxr-xr-xservices/available/touchegg/run (renamed from services/touchegg/run)0
-rwxr-xr-xservices/available/unclutter/log/run (renamed from services/unclutter/log/run)0
-rwxr-xr-xservices/available/unclutter/run (renamed from services/unclutter/run)0
-rwxr-xr-xservices/available/urxvtd/log/run (renamed from services/urxvtd/log/run)0
-rwxr-xr-xservices/available/urxvtd/run (renamed from services/urxvtd/run)0
-rwxr-xr-xservices/available/volnoti/log/run (renamed from services/volnoti/log/run)0
-rwxr-xr-xservices/available/volnoti/run (renamed from services/volnoti/run)0
-rwxr-xr-xservices/available/xbindkeys/run (renamed from services/xbindkeys/run)0
-rwxr-xr-xservices/available/xcape/log/run (renamed from services/xcape/log/run)0
-rwxr-xr-xservices/available/xcape/run (renamed from services/xcape/run)0
-rw-r--r--xprofile2
35 files changed, 14 insertions, 8 deletions
diff --git a/.gitignore b/.gitignore
index 3609821..5dbbbba 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,6 +16,7 @@
/offlineimap
!/offlineimap/pass.py
/procmail/log
+/services/enabled
/ssh
!/ssh/authorized_keys
!/ssh/cao_key
diff --git a/Makefile b/Makefile
index 3f2dfcd..471bd23 100644
--- a/Makefile
+++ b/Makefile
@@ -57,7 +57,7 @@ INSTALL = agignore \
weechat \
zsh
-EMPTYDIRS = $(patsubst services/%,.log/%,$(wildcard services/*)) \
+EMPTYDIRS = $(patsubst services/available/%,.log/%,$(wildcard services/available/*)) \
Maildir \
.cache/mutt/headers \
.cache/mutt/bodies \
@@ -70,7 +70,8 @@ EMPTYDIRS = $(patsubst services/%,.log/%,$(wildcard services/*)) \
INSTALLED = $(patsubst %,$(INTO)/%/,$(EMPTYDIRS)) \
$(patsubst %,$(INTO)/.%,$(INSTALL))
-BUILD = bin/local/timettyrec \
+BUILD = $(patsubst services/available/%,services/enabled/%,$(wildcard services/available/*)) \
+ bin/local/timettyrec \
$(addsuffix .dat,$(filter-out %.dat,$(wildcard fortune/*))) \
$(addsuffix tags,$(wildcard vim/pack/*/start/*/doc/)) \
vim/spell/en.utf-8.add.spl \
@@ -115,6 +116,10 @@ $(INTO)/.% : %
@[ ! -e $@ ] || [ -h $@ ] || mv -f $@ $@.bak
$(LN) $(PWD)/$< $@
+services/enabled/% : services/available/%
+ @mkdir -p services/enabled
+ $(LN) ../available/$(notdir $<) $@
+
/var/spool/cron/$(USER) : crontab
@crontab crontab
diff --git a/bin/svget b/bin/svget
index d0cf384..77c18f4 100755
--- a/bin/svget
+++ b/bin/svget
@@ -1,3 +1,3 @@
#!/bin/bash
-svstat "$HOME/.services/$1"
+svstat "$HOME/.services/enabled/$1"
diff --git a/bin/svkill b/bin/svkill
index c0ec724..060d2c7 100755
--- a/bin/svkill
+++ b/bin/svkill
@@ -1,4 +1,4 @@
#!/bin/bash
-svc -k "$HOME/.services/$1"
+svc -k "$HOME/.services/enabled/$1"
svget "$1"
diff --git a/bin/svstop b/bin/svstop
index d861c6e..36c0132 100755
--- a/bin/svstop
+++ b/bin/svstop
@@ -1,4 +1,4 @@
#!/bin/bash
-svc -d "$HOME/.services/$1"
+svc -d "$HOME/.services/enabled/$1"
svget "$1"
diff --git a/bin/svup b/bin/svup
index aea92f3..c49a99e 100755
--- a/bin/svup
+++ b/bin/svup
@@ -1,4 +1,4 @@
#!/bin/bash
-svc -u "$HOME/.services/$1"
+svc -u "$HOME/.services/enabled/$1"
svget "$1"
diff --git a/bin/update_mail b/bin/update_mail
index 88fde5f..b909d9f 100755
--- a/bin/update_mail
+++ b/bin/update_mail
@@ -1,6 +1,6 @@
#!/bin/sh
-stat=$(svstat "$HOME/.services/offlineimap")
+stat=$(svstat "$HOME/.services/enabled/offlineimap")
if echo $stat | grep -q "offlineimap: down"; then
echo "no offlineimap process running" >&2
exit 1
diff --git a/services/compton/log/run b/services/available/compton/log/run
index 38a5424..38a5424 100755
--- a/services/compton/log/run
+++ b/services/available/compton/log/run
diff --git a/services/compton/run b/services/available/compton/run
index 058cc1a..058cc1a 100755
--- a/services/compton/run
+++ b/services/available/compton/run
diff --git a/services/duplicati/log/run b/services/available/duplicati/log/run
index 540c0d7..540c0d7 100755
--- a/services/duplicati/log/run
+++ b/services/available/duplicati/log/run
diff --git a/services/duplicati/run b/services/available/duplicati/run
index 8d2a9ad..8d2a9ad 100755
--- a/services/duplicati/run
+++ b/services/available/duplicati/run
diff --git a/services/kuake/log/run b/services/available/kuake/log/run
index c3838ba..c3838ba 100755
--- a/services/kuake/log/run
+++ b/services/available/kuake/log/run
diff --git a/services/kuake/run b/services/available/kuake/run
index a9c795b..a9c795b 100755
--- a/services/kuake/run
+++ b/services/available/kuake/run
diff --git a/services/light-locker/log/run b/services/available/light-locker/log/run
index d92a97c..d92a97c 100755
--- a/services/light-locker/log/run
+++ b/services/available/light-locker/log/run
diff --git a/services/light-locker/run b/services/available/light-locker/run
index 6cf1077..6cf1077 100755
--- a/services/light-locker/run
+++ b/services/available/light-locker/run
diff --git a/services/mpd/log/run b/services/available/mpd/log/run
index b1fdb9c..b1fdb9c 100755
--- a/services/mpd/log/run
+++ b/services/available/mpd/log/run
diff --git a/services/mpd/run b/services/available/mpd/run
index 186baef..186baef 100755
--- a/services/mpd/run
+++ b/services/available/mpd/run
diff --git a/services/mpdscribble/log/run b/services/available/mpdscribble/log/run
index 1a30b0a..1a30b0a 100755
--- a/services/mpdscribble/log/run
+++ b/services/available/mpdscribble/log/run
diff --git a/services/mpdscribble/run b/services/available/mpdscribble/run
index 95d4511..95d4511 100755
--- a/services/mpdscribble/run
+++ b/services/available/mpdscribble/run
diff --git a/services/offlineimap/log/run b/services/available/offlineimap/log/run
index d924c2d..d924c2d 100755
--- a/services/offlineimap/log/run
+++ b/services/available/offlineimap/log/run
diff --git a/services/offlineimap/run b/services/available/offlineimap/run
index 5589a60..5589a60 100755
--- a/services/offlineimap/run
+++ b/services/available/offlineimap/run
diff --git a/services/redshift/log/run b/services/available/redshift/log/run
index c80ccab..c80ccab 100755
--- a/services/redshift/log/run
+++ b/services/available/redshift/log/run
diff --git a/services/redshift/run b/services/available/redshift/run
index 6a31b2c..6a31b2c 100755
--- a/services/redshift/run
+++ b/services/available/redshift/run
diff --git a/services/touchegg/log/run b/services/available/touchegg/log/run
index d38dc0b..d38dc0b 100755
--- a/services/touchegg/log/run
+++ b/services/available/touchegg/log/run
diff --git a/services/touchegg/run b/services/available/touchegg/run
index b1a6780..b1a6780 100755
--- a/services/touchegg/run
+++ b/services/available/touchegg/run
diff --git a/services/unclutter/log/run b/services/available/unclutter/log/run
index c36d116..c36d116 100755
--- a/services/unclutter/log/run
+++ b/services/available/unclutter/log/run
diff --git a/services/unclutter/run b/services/available/unclutter/run
index 2cc69fa..2cc69fa 100755
--- a/services/unclutter/run
+++ b/services/available/unclutter/run
diff --git a/services/urxvtd/log/run b/services/available/urxvtd/log/run
index afb8da5..afb8da5 100755
--- a/services/urxvtd/log/run
+++ b/services/available/urxvtd/log/run
diff --git a/services/urxvtd/run b/services/available/urxvtd/run
index 652d2a4..652d2a4 100755
--- a/services/urxvtd/run
+++ b/services/available/urxvtd/run
diff --git a/services/volnoti/log/run b/services/available/volnoti/log/run
index d5186f0..d5186f0 100755
--- a/services/volnoti/log/run
+++ b/services/available/volnoti/log/run
diff --git a/services/volnoti/run b/services/available/volnoti/run
index 6481a2b..6481a2b 100755
--- a/services/volnoti/run
+++ b/services/available/volnoti/run
diff --git a/services/xbindkeys/run b/services/available/xbindkeys/run
index 64a1a7a..64a1a7a 100755
--- a/services/xbindkeys/run
+++ b/services/available/xbindkeys/run
diff --git a/services/xcape/log/run b/services/available/xcape/log/run
index bc152bd..bc152bd 100755
--- a/services/xcape/log/run
+++ b/services/available/xcape/log/run
diff --git a/services/xcape/run b/services/available/xcape/run
index ead9f5a..ead9f5a 100755
--- a/services/xcape/run
+++ b/services/available/xcape/run
diff --git a/xprofile b/xprofile
index ef35281..2666eed 100644
--- a/xprofile
+++ b/xprofile
@@ -2,6 +2,6 @@
start-pulseaudio-x11
-pidof svscan || (svscan $HOME/.services 2>&1 | readproctitle $USER ........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................) &
+pidof svscan || (svscan $HOME/.services/enabled 2>&1 | readproctitle $USER ........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................) &
setup-inputs