Commit 2fe2c4e
committed
fix(systemd): Add .service suffix to all systemctl commands
Fixes systemctl enable/disable/start/stop/restart commands to consistently
use the .service suffix for both concourse-server and concourse-worker.
This resolves a compatibility issue with systemd 255 on Ubuntu 24.04 where
systemctl enable without the .service suffix can fail with exit code 1.
The error was:
Status check failed: Command '['systemctl', 'enable', 'concourse-server']'
returned non-zero exit status 1.
Changed files:
- lib/concourse_web.py: Add .service to all systemctl commands
- lib/concourse_worker.py: Add .service to all systemctl commands
- lib/concourse_helper.py: Add .service to restart/kill commands
Fixes: #104 (GitHub Actions CI failure in Deploy step)1 parent 21b2638 commit 2fe2c4e
File tree
3 files changed
+36
-16
lines changed- lib
3 files changed
+36
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
371 | | - | |
372 | | - | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
373 | 377 | | |
374 | 378 | | |
375 | 379 | | |
376 | 380 | | |
377 | | - | |
| 381 | + | |
| 382 | + | |
378 | 383 | | |
379 | 384 | | |
380 | | - | |
| 385 | + | |
| 386 | + | |
381 | 387 | | |
382 | 388 | | |
383 | 389 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
276 | | - | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
277 | 281 | | |
278 | 282 | | |
279 | 283 | | |
| |||
283 | 287 | | |
284 | 288 | | |
285 | 289 | | |
286 | | - | |
| 290 | + | |
287 | 291 | | |
288 | 292 | | |
289 | | - | |
| 293 | + | |
| 294 | + | |
290 | 295 | | |
291 | 296 | | |
292 | 297 | | |
| |||
295 | 300 | | |
296 | 301 | | |
297 | 302 | | |
298 | | - | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
299 | 306 | | |
300 | 307 | | |
301 | 308 | | |
| |||
305 | 312 | | |
306 | 313 | | |
307 | 314 | | |
308 | | - | |
| 315 | + | |
309 | 316 | | |
310 | 317 | | |
311 | 318 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1085 | 1085 | | |
1086 | 1086 | | |
1087 | 1087 | | |
1088 | | - | |
1089 | | - | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
1090 | 1094 | | |
1091 | 1095 | | |
1092 | 1096 | | |
| |||
1096 | 1100 | | |
1097 | 1101 | | |
1098 | 1102 | | |
1099 | | - | |
| 1103 | + | |
1100 | 1104 | | |
1101 | 1105 | | |
1102 | | - | |
| 1106 | + | |
| 1107 | + | |
1103 | 1108 | | |
1104 | 1109 | | |
1105 | 1110 | | |
| |||
1108 | 1113 | | |
1109 | 1114 | | |
1110 | 1115 | | |
1111 | | - | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
1112 | 1119 | | |
1113 | 1120 | | |
1114 | 1121 | | |
| |||
1118 | 1125 | | |
1119 | 1126 | | |
1120 | 1127 | | |
1121 | | - | |
| 1128 | + | |
1122 | 1129 | | |
1123 | 1130 | | |
1124 | 1131 | | |
| |||
0 commit comments