瀏覽代碼

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
 # querying
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
 where_i_am() {
46
 where_i_am() {
56
     #
47
     #
57
     # what is my physical location?
48
     # what is my physical location?
61
     saturnin conf -p iam.seeing.gw.$gwmac || echo OUT
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
 set_status() {
55
 set_status() {
80
     #
56
     #
81
     # set public status $1 by command in conf file
57
     # set public status $1 by command in conf file
141
     #
117
     #
142
     # returning to work (should be called by other subcommands)
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
     set_status "back"
120
     set_status "back"
150
     klist -s || urxvt -e kinit
121
     klist -s || urxvt -e kinit
151
 }
122
 }