diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile | 9 | ||||
-rwxr-xr-x | bin/svget | 2 | ||||
-rwxr-xr-x | bin/svkill | 2 | ||||
-rwxr-xr-x | bin/svstop | 2 | ||||
-rwxr-xr-x | bin/svup | 2 | ||||
-rwxr-xr-x | bin/update_mail | 2 | ||||
-rwxr-xr-x | services/available/compton/log/run (renamed from services/compton/log/run) | 0 | ||||
-rwxr-xr-x | services/available/compton/run (renamed from services/compton/run) | 0 | ||||
-rwxr-xr-x | services/available/duplicati/log/run (renamed from services/duplicati/log/run) | 0 | ||||
-rwxr-xr-x | services/available/duplicati/run (renamed from services/duplicati/run) | 0 | ||||
-rwxr-xr-x | services/available/kuake/log/run (renamed from services/kuake/log/run) | 0 | ||||
-rwxr-xr-x | services/available/kuake/run (renamed from services/kuake/run) | 0 | ||||
-rwxr-xr-x | services/available/light-locker/log/run (renamed from services/light-locker/log/run) | 0 | ||||
-rwxr-xr-x | services/available/light-locker/run (renamed from services/light-locker/run) | 0 | ||||
-rwxr-xr-x | services/available/mpd/log/run (renamed from services/mpd/log/run) | 0 | ||||
-rwxr-xr-x | services/available/mpd/run (renamed from services/mpd/run) | 0 | ||||
-rwxr-xr-x | services/available/mpdscribble/log/run (renamed from services/mpdscribble/log/run) | 0 | ||||
-rwxr-xr-x | services/available/mpdscribble/run (renamed from services/mpdscribble/run) | 0 | ||||
-rwxr-xr-x | services/available/offlineimap/log/run (renamed from services/offlineimap/log/run) | 0 | ||||
-rwxr-xr-x | services/available/offlineimap/run (renamed from services/offlineimap/run) | 0 | ||||
-rwxr-xr-x | services/available/redshift/log/run (renamed from services/redshift/log/run) | 0 | ||||
-rwxr-xr-x | services/available/redshift/run (renamed from services/redshift/run) | 0 | ||||
-rwxr-xr-x | services/available/touchegg/log/run (renamed from services/touchegg/log/run) | 0 | ||||
-rwxr-xr-x | services/available/touchegg/run (renamed from services/touchegg/run) | 0 | ||||
-rwxr-xr-x | services/available/unclutter/log/run (renamed from services/unclutter/log/run) | 0 | ||||
-rwxr-xr-x | services/available/unclutter/run (renamed from services/unclutter/run) | 0 | ||||
-rwxr-xr-x | services/available/urxvtd/log/run (renamed from services/urxvtd/log/run) | 0 | ||||
-rwxr-xr-x | services/available/urxvtd/run (renamed from services/urxvtd/run) | 0 | ||||
-rwxr-xr-x | services/available/volnoti/log/run (renamed from services/volnoti/log/run) | 0 | ||||
-rwxr-xr-x | services/available/volnoti/run (renamed from services/volnoti/run) | 0 | ||||
-rwxr-xr-x | services/available/xbindkeys/run (renamed from services/xbindkeys/run) | 0 | ||||
-rwxr-xr-x | services/available/xcape/log/run (renamed from services/xcape/log/run) | 0 | ||||
-rwxr-xr-x | services/available/xcape/run (renamed from services/xcape/run) | 0 | ||||
-rw-r--r-- | xprofile | 2 |
35 files changed, 14 insertions, 8 deletions
@@ -16,6 +16,7 @@ /offlineimap !/offlineimap/pass.py /procmail/log +/services/enabled /ssh !/ssh/authorized_keys !/ssh/cao_key @@ -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 @@ -1,3 +1,3 @@ #!/bin/bash -svstat "$HOME/.services/$1" +svstat "$HOME/.services/enabled/$1" @@ -1,4 +1,4 @@ #!/bin/bash -svc -k "$HOME/.services/$1" +svc -k "$HOME/.services/enabled/$1" svget "$1" @@ -1,4 +1,4 @@ #!/bin/bash -svc -d "$HOME/.services/$1" +svc -d "$HOME/.services/enabled/$1" svget "$1" @@ -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 @@ -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 |