Skip to content

Commit ad9c9d5

Browse files
Starting DBUS in IDE
1 parent 2990f2b commit ad9c9d5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

sagemaker_ssh_helper/sm-ssh-ide

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,13 @@ elif [[ "$1" == "start" ]]; then
188188

189189
if [[ "$OPTIONS" != "--ssh-only" ]]; then
190190

191+
if _is_centos; then
192+
:
193+
else
194+
echo "sm-ssh-ide: Starting DBUS service"
195+
/etc/init.d/dbus start
196+
fi
197+
191198
echo "sm-ssh-ide: Starting VNC server"
192199
vncserver :1
193200

@@ -271,6 +278,12 @@ elif [[ "$1" == "stop" ]]; then
271278

272279
# Wait dbus to stop and terminate manually, if it didn't
273280
sleep 5
281+
if _is_centos; then
282+
:
283+
else
284+
echo "sm-ssh-ide: Stopping DBUS service"
285+
/etc/init.d/dbus stop
286+
fi
274287
pkill -f dbus-daemon || :
275288

276289
pkill -e Xtigervnc || :

0 commit comments

Comments
 (0)