Results 1 to 7 of 7

Thread: Remote Desktop - Software keeps running ad infinitum?

  1. #1
    jim
    jim is online now
    HEXUS.clueless jim's Avatar
    Join Date
    Sep 2008
    Location
    Location: Location:
    Posts
    11,354
    Thanks
    606
    Thanked
    1,593 times in 1,267 posts
    • jim's system
      • Motherboard:
      • Asus Maximus IV Gene-Z
      • CPU:
      • i5 2500K @ 4.5GHz
      • Memory:
      • 8GB Corsair Vengeance LP
      • Storage:
      • 1TB Sandisk SSD
      • Graphics card(s):
      • ASUS GTX 970
      • PSU:
      • Corsair AX650
      • Case:
      • Silverstone Fortress FT03
      • Operating System:
      • 8.1 Pro
      • Monitor(s):
      • Dell S2716DG
      • Internet:
      • 10 Mbps ADSL

    Remote Desktop - Software keeps running ad infinitum?

    I'm aware that when you launch the RDP client, the remote target opens a session rather than running directly on the desktop like VNC, and that software runs through that session.

    Question is, how long does that session last? I'm aware that any software opened under RDP continues to run, but is that ad infinitum, or does it have a time limit?

    I ask because I'm aware that some software on my server hasn't been running for a while, then today I opened up the RDP client to check what was up with it, and as soon as I opened the window, that software suddenly started booting up. I have no idea why it did that, and it should have been running all the time, although I'm sure I opened it originally in an RDP client. Is it possible that the session expired after 30 days or something, and closed the software, only reopening it when I reopened the RDP connection?

  2. #2
    Almost Ex-HEXUS Staff Jonatron's Avatar
    Join Date
    Sep 2009
    Location
    London
    Posts
    553
    Thanks
    45
    Thanked
    159 times in 103 posts

    Re: Remote Desktop - Software keeps running ad infinitum?

    It should keep running. Are you sure the server didn't restart for updates, or the software didn't crash?

  3. Received thanks from:

    jim (08-01-2013)

  4. #3
    jim
    jim is online now
    HEXUS.clueless jim's Avatar
    Join Date
    Sep 2008
    Location
    Location: Location:
    Posts
    11,354
    Thanks
    606
    Thanked
    1,593 times in 1,267 posts
    • jim's system
      • Motherboard:
      • Asus Maximus IV Gene-Z
      • CPU:
      • i5 2500K @ 4.5GHz
      • Memory:
      • 8GB Corsair Vengeance LP
      • Storage:
      • 1TB Sandisk SSD
      • Graphics card(s):
      • ASUS GTX 970
      • PSU:
      • Corsair AX650
      • Case:
      • Silverstone Fortress FT03
      • Operating System:
      • 8.1 Pro
      • Monitor(s):
      • Dell S2716DG
      • Internet:
      • 10 Mbps ADSL

    Re: Remote Desktop - Software keeps running ad infinitum?

    Quote Originally Posted by Jonatron View Post
    It should keep running. Are you sure the server didn't restart for updates, or the software didn't crash?
    It could easily have done, it's a pretty knackered old box. Given that you reckon it should have kept running, I might upgrade that to almost certainly did.

    I just wasn't sure why I thought the sessions kept running forever, so thought I'd better check.

  5. #4
    HEXUS.social member Agent's Avatar
    Join Date
    Jul 2003
    Location
    Internet
    Posts
    19,159
    Thanks
    733
    Thanked
    1,605 times in 1,044 posts

    Re: Remote Desktop - Software keeps running ad infinitum?

    It sounds like the software is set to start on a user login and not running as a service? If so, this is expected behaviour.

    It's why webservers and such run as a service - no matter if the machine is rebooted, it'll start as soon as it's allowed to. No user interaction required.
    Quote Originally Posted by Saracen View Post
    And by trying to force me to like small pants, they've alienated me.

  6. #5
    jim
    jim is online now
    HEXUS.clueless jim's Avatar
    Join Date
    Sep 2008
    Location
    Location: Location:
    Posts
    11,354
    Thanks
    606
    Thanked
    1,593 times in 1,267 posts
    • jim's system
      • Motherboard:
      • Asus Maximus IV Gene-Z
      • CPU:
      • i5 2500K @ 4.5GHz
      • Memory:
      • 8GB Corsair Vengeance LP
      • Storage:
      • 1TB Sandisk SSD
      • Graphics card(s):
      • ASUS GTX 970
      • PSU:
      • Corsair AX650
      • Case:
      • Silverstone Fortress FT03
      • Operating System:
      • 8.1 Pro
      • Monitor(s):
      • Dell S2716DG
      • Internet:
      • 10 Mbps ADSL

    Re: Remote Desktop - Software keeps running ad infinitum?

    Quote Originally Posted by Agent View Post
    It sounds like the software is set to start on a user login and not running as a service? If so, this is expected behaviour.

    It's why webservers and such run as a service - no matter if the machine is rebooted, it'll start as soon as it's allowed to. No user interaction required.
    Yeah, it's not designed to be used as a service, although I suppose it may be possible to make it into one with that tool (I think MS released one while back... not that I can remember its name). EDIT: Google says Srvany.exe

    I might look into it, but it's not too big a problem since the machine stays on 24/7.

  7. #6
    Senior Member
    Join Date
    Feb 2008
    Posts
    889
    Thanks
    4
    Thanked
    144 times in 133 posts
    • smargh's system
      • Motherboard:
      • Gigabyte GA-EP45-UD3P
      • CPU:
      • Xeon E5450 with 775-to-771 Mod
      • Memory:
      • 16GB Crucial
      • Storage:
      • Intel X25-M G2 80GB/Adaptec 3405 4x 2TB Ultrastar RAID1 / 1x 6TB Hitachi He6 / Dying 2TB Samsung
      • Graphics card(s):
      • GTX 750 Ti
      • PSU:
      • Seasonic X-560
      • Case:
      • Lian-Li PC-A71
      • Operating System:
      • Windows 7 Ultimate 64bit
      • Monitor(s):
      • BenQ G2400WD
      • Internet:
      • Really Crap ADSL2 <3Mbit

    Re: Remote Desktop - Software keeps running ad infinitum?

    The amount of time a disconnected session is kept open is an option in the TS (or RDS) listener options.
    Or, as has been said, either the server rebooted or you connected to a different session, i.e. admin console on Server 2003.

  8. #7
    Senior Member
    Join Date
    May 2009
    Location
    Norfolk
    Posts
    474
    Thanks
    3
    Thanked
    26 times in 26 posts
    • pipTheGeek's system
      • Motherboard:
      • Asus P6T Deluxe
      • CPU:
      • Core i7 920 @ 3.6GHz
      • Memory:
      • 3 * 2Gb Corsair XMS @ DDR3 1800
      • Storage:
      • 300GB 15K SAS + 500Gb
      • Graphics card(s):
      • GTX570
      • PSU:
      • corsair 760i
      • Case:
      • Corsair 550d
      • Operating System:
      • Windows 7
      • Monitor(s):
      • Dell Alienware 23"
      • Internet:
      • VM 50Mb

    Re: Remote Desktop - Software keeps running ad infinitum?

    My bet would be that the box rebooted for patch installation. Try changing your windows update option to let you choose when to install. You just need to remember to go and check it after patch tuesday, install the patches, reboot and then log back in so your software starts again. I think the default RD options are to keep disconnected sessions open forever, so unless you have set a timeout it probably isn't that.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •