File tree 14 files changed +23
-23
lines changed
14 files changed +23
-23
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Before=ntp-config.service
7
7
[Service]
8
8
User={{ sonicadmin_user }}
9
9
ExecStartPre=/usr/bin/{{docker_container_name}}.sh start
10
- ExecStart=/usr/bin/{{docker_container_name}}.sh attach
10
+ ExecStart=/usr/bin/{{docker_container_name}}.sh wait
11
11
ExecStop=/usr/bin/{{docker_container_name}}.sh stop
12
12
13
13
[Install]
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ After=docker.service
6
6
[Service]
7
7
User=root
8
8
ExecStartPre=/usr/bin/{{docker_container_name}}.sh start
9
- ExecStart=/usr/bin/{{docker_container_name}}.sh attach
9
+ ExecStart=/usr/bin/{{docker_container_name}}.sh wait
10
10
ExecStop=/usr/bin/{{docker_container_name}}.sh stop
11
11
12
12
[Install]
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Before=ntp-config.service
7
7
[Service]
8
8
User={{ sonicadmin_user }}
9
9
ExecStartPre=/usr/bin/{{ docker_container_name }}.sh start
10
- ExecStart=/usr/bin/{{ docker_container_name }}.sh attach
10
+ ExecStart=/usr/bin/{{ docker_container_name }}.sh wait
11
11
ExecStop=/usr/bin/{{ docker_container_name }}.sh stop
12
12
13
13
[Install]
Original file line number Diff line number Diff line change @@ -150,20 +150,20 @@ start() {
150
150
postStartAction
151
151
}
152
152
153
- attach () {
154
- docker attach --no-stdin {{docker_container_name}}
153
+ wait () {
154
+ docker wait {{docker_container_name}}
155
155
}
156
156
157
157
stop () {
158
158
docker stop {{docker_container_name}}
159
159
}
160
160
161
161
case " $1 " in
162
- start|stop|attach )
162
+ start|wait|stop )
163
163
$1
164
164
;;
165
165
* )
166
- echo " Usage: $0 {start|stop|attach }"
166
+ echo " Usage: $0 {start|wait|stop }"
167
167
exit 1
168
168
;;
169
169
esac
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Before=ntp-config.service
7
7
[Service]
8
8
User={{ sonicadmin_user }}
9
9
ExecStartPre=/usr/bin/{{docker_container_name}}.sh start
10
- ExecStart=/usr/bin/{{docker_container_name}}.sh attach
10
+ ExecStart=/usr/bin/{{docker_container_name}}.sh wait
11
11
ExecStop=/usr/bin/{{docker_container_name}}.sh stop
12
12
13
13
[Install]
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Before=ntp-config.service
7
7
[Service]
8
8
User={{ sonicadmin_user }}
9
9
ExecStartPre=/usr/bin/{{docker_container_name}}.sh start
10
- ExecStart=/usr/bin/{{docker_container_name}}.sh attach
10
+ ExecStart=/usr/bin/{{docker_container_name}}.sh wait
11
11
ExecStop=/usr/bin/{{docker_container_name}}.sh stop
12
12
13
13
[Install]
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Before=ntp-config.service
7
7
[Service]
8
8
User={{ sonicadmin_user }}
9
9
ExecStartPre=/usr/bin/{{ docker_container_name }}.sh start
10
- ExecStart=/usr/bin/{{ docker_container_name }}.sh attach
10
+ ExecStart=/usr/bin/{{ docker_container_name }}.sh wait
11
11
ExecStop=/usr/bin/{{ docker_container_name }}.sh stop
12
12
13
13
[Install]
Original file line number Diff line number Diff line change @@ -6,5 +6,5 @@ Before=ntp-config.service
6
6
7
7
[Service]
8
8
ExecStartPre=/usr/bin/{{docker_container_name}}.sh start
9
- ExecStart=/usr/bin/{{docker_container_name}}.sh attach
9
+ ExecStart=/usr/bin/{{docker_container_name}}.sh wait
10
10
ExecStop=/usr/bin/{{docker_container_name}}.sh stop
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ Before=ntp-config.service
14
14
User=root
15
15
Environment=sonic_asic_platform={{ sonic_asic_platform }}
16
16
ExecStartPre=/usr/local/bin/swss.sh start
17
- ExecStart=/usr/local/bin/swss.sh attach
17
+ ExecStart=/usr/local/bin/swss.sh wait
18
18
ExecStop=/usr/local/bin/swss.sh stop
19
19
20
20
[Install]
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ Before=ntp-config.service
20
20
User=root
21
21
Environment=sonic_asic_platform={{ sonic_asic_platform }}
22
22
ExecStartPre=/usr/local/bin/syncd.sh start
23
- ExecStart=/usr/local/bin/syncd.sh attach
23
+ ExecStart=/usr/local/bin/syncd.sh wait
24
24
ExecStop=/usr/local/bin/syncd.sh stop
25
25
26
26
[Install]
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Before=ntp-config.service
7
7
[Service]
8
8
User={{ sonicadmin_user }}
9
9
ExecStartPre=/usr/bin/{{docker_container_name}}.sh start
10
- ExecStart=/usr/bin/{{docker_container_name}}.sh attach
10
+ ExecStart=/usr/bin/{{docker_container_name}}.sh wait
11
11
ExecStop=/usr/bin/{{docker_container_name}}.sh stop
12
12
13
13
[Install]
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Before=ntp-config.service
7
7
[Service]
8
8
User={{ sonicadmin_user }}
9
9
ExecStartPre=/usr/bin/{{docker_container_name}}.sh start
10
- ExecStart=/usr/bin/{{docker_container_name}}.sh attach
10
+ ExecStart=/usr/bin/{{docker_container_name}}.sh wait
11
11
ExecStop=/usr/bin/{{docker_container_name}}.sh stop
12
12
13
13
[Install]
Original file line number Diff line number Diff line change @@ -115,9 +115,9 @@ start() {
115
115
unlock_service_state_change
116
116
}
117
117
118
- attach () {
118
+ wait () {
119
119
startPeerService
120
- /usr/bin/${SERVICE} .sh attach
120
+ /usr/bin/${SERVICE} .sh wait
121
121
}
122
122
123
123
stop () {
@@ -142,11 +142,11 @@ stop() {
142
142
}
143
143
144
144
case " $1 " in
145
- start|attach |stop)
145
+ start|wait |stop)
146
146
$1
147
147
;;
148
148
* )
149
- echo " Usage: $0 {start|attach |stop}"
149
+ echo " Usage: $0 {start|wait |stop}"
150
150
exit 1
151
151
;;
152
152
esac
Original file line number Diff line number Diff line change @@ -119,8 +119,8 @@ start() {
119
119
unlock_service_state_change
120
120
}
121
121
122
- attach () {
123
- /usr/bin/${SERVICE} .sh attach
122
+ wait () {
123
+ /usr/bin/${SERVICE} .sh wait
124
124
}
125
125
126
126
stop () {
@@ -168,11 +168,11 @@ stop() {
168
168
}
169
169
170
170
case " $1 " in
171
- start|attach |stop)
171
+ start|wait |stop)
172
172
$1
173
173
;;
174
174
* )
175
- echo " Usage: $0 {start|attach |stop}"
175
+ echo " Usage: $0 {start|wait |stop}"
176
176
exit 1
177
177
;;
178
178
esac
You can’t perform that action at this time.
0 commit comments