Skip to content

Commit ce419f9

Browse files
committed
fix(services): start/stop services in integrations
1 parent 4141fc8 commit ce419f9

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

imageroot/actions/configure-module/80start_services

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,9 @@ fi
5252
if [ "$SATELLITE_CALL_TRANSCRIPTION_ENABLED" = "True" ] || [ "$SATELLITE_VOICEMAIL_TRANSCRIPTION_ENABLED" = "True" ]; then
5353
systemctl --user enable --now satellite.service
5454
systemctl --user enable --now satellite-mqtt.service
55-
systemctl --user enable --now satellite-pgsql.service
56-
systemctl --user enable --now satellite-recordings-cleanup
5755
else
5856
systemctl --user stop satellite.service
5957
systemctl --user disable satellite.service
6058
systemctl --user stop satellite-mqtt.service
6159
systemctl --user disable satellite-mqtt.service
62-
systemctl --user stop satellite-pgsql.service
63-
systemctl --user disable satellite-pgsql.service
64-
systemctl --user stop satellite-recordings-cleanup
65-
systemctl --user disable satellite-recordings-cleanup
6660
fi

imageroot/actions/set-integrations/50manage_service

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,22 @@ if call_enabled == 'True' or vm_enabled == 'True':
1818

1919
subprocess.run(["systemctl", "--user", "enable", "satellite.service"], check=True)
2020
subprocess.run(["systemctl", "--user", "restart", "satellite.service"], check=True)
21+
22+
subprocess.run(["systemctl", "--user", "enable", "satellite-pgsql.service"], check=True)
23+
subprocess.run(["systemctl", "--user", "restart", "satellite-pgsql.service"], check=True)
24+
25+
subprocess.run(["systemctl", "--user", "enable", "satellite-recordings-cleanup.service"], check=True)
26+
subprocess.run(["systemctl", "--user", "restart", "satellite-recordings-cleanup.service"], check=True)
2127
elif call_enabled == 'False' and vm_enabled == 'False':
2228
# Stop and disable services
2329
subprocess.run(["systemctl", "--user", "stop", "satellite.service"], check=False)
2430
subprocess.run(["systemctl", "--user", "disable", "satellite.service"], check=False)
2531

2632
subprocess.run(["systemctl", "--user", "stop", "satellite-mqtt.service"], check=False)
2733
subprocess.run(["systemctl", "--user", "disable", "satellite-mqtt.service"], check=False)
34+
35+
subprocess.run(["systemctl", "--user", "stop", "satellite-pgsql.service"], check=False)
36+
subprocess.run(["systemctl", "--user", "disable", "satellite-pgsql.service"], check=False)
37+
38+
subprocess.run(["systemctl", "--user", "stop", "satellite-recordings-cleanup.service"], check=False)
39+
subprocess.run(["systemctl", "--user", "disable", "satellite-recordings-cleanup.service"], check=False)

0 commit comments

Comments
 (0)