瀏覽代碼

Remove daemon management

Better left to init system or desktop manager or hooks
Alois Mahdal 10 年之前
父節點
當前提交
72fc86ca1d
共有 1 個檔案被更改,包括 0 行新增29 行删除
  1. 0
    29
      src/libexec/saturnin-iam

+ 0
- 29
src/libexec/saturnin-iam 查看文件

@@ -43,15 +43,6 @@ usage() {
43 43
 # querying
44 44
 #
45 45
 
46
-familiars_at() {
47
-    #
48
-    # daemons specific to $1 location plus the rest
49
-    #
50
-    test -n "$1" || usagef "location"
51
-    saturnin conf -p iam.running.at.$1
52
-    saturnin conf -p iam.running.at.ANYPLACE
53
-}
54
-
55 46
 where_i_am() {
56 47
     #
57 48
     # what is my physical location?
@@ -61,21 +52,6 @@ where_i_am() {
61 52
     saturnin conf -p iam.seeing.gw.$gwmac || echo OUT
62 53
 }
63 54
 
64
-start_familiar() {
65
-    #
66
-    # start familiar as indicated by conf file (unless running)
67
-    #
68
-    local f=$1
69
-    pids_matching $f >/dev/null && return 0
70
-    local like=$(saturnin conf -p iam.starting.like.this.$f)
71
-    debug -v f like
72
-    if test -n  "$like";
73
-        then
74
-            $like &
75
-        else $f &
76
-    fi
77
-}
78
-
79 55
 set_status() {
80 56
     #
81 57
     # set public status $1 by command in conf file
@@ -141,11 +117,6 @@ i_am_back() {
141 117
     #
142 118
     # returning to work (should be called by other subcommands)
143 119
     #
144
-    local f
145
-    for f in $(familiars_at $(where_i_am));
146
-    do
147
-        start_familiar $f
148
-    done
149 120
     set_status "back"
150 121
     klist -s || urxvt -e kinit
151 122
 }