systemd service of vnc restore

25 views
Skip to first unread message

lavanya tech

unread,
Mar 24, 2025, 5:22:18 AMMar 24
to TigerVNC User Discussion/Support

Hi,

Can anyone here suggest me how to restore  vncsessions to current state after its lost.

I currently start vncsessions  via systemd

systemctl start vncserver@ :displaynumber

I look forward to your response.


Thanks,

lavanya

Pierre Ossman

unread,
Mar 25, 2025, 4:08:01 AMMar 25
to lavanya tech, TigerVNC User Discussion/Support
What do you mean by restoring vncsessions? Starting it again when it has
terminated?

Regards,
--
Pierre Ossman Software Development
Cendio AB https://cendio.com
Teknikringen 8 https://twitter.com/ThinLinc
583 30 Linköping https://facebook.com/ThinLinc
Phone: +46-13-214600

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

Pierre Ossman

unread,
Mar 25, 2025, 7:26:17 AMMar 25
to lavanya tech, TigerVNC User Discussion/Support
On 25/03/2025 11:34, lavanya tech wrote:
> Hi,
>
> After the server reboot, somehow all the existing vnc sessions are lost. In
> that case, how can we restore it so that all the existing processes are not
> terminated.
>

Rebooting a server will terminate all process on that server, so those
are permanently gone. The users will need to restart things.

As for the vnc services, did you configure them to be started on boot by
doing "sudo systemctl enable" on them?

Pierre Ossman

unread,
Mar 25, 2025, 10:56:07 AMMar 25
to lavanya tech, TigerVNC User Discussion/Support
On 25/03/2025 13:15, lavanya tech wrote:
> Hi Ossman,
> Thanks for your reply.
>
> Rebooting a server will terminate all process on that server, so those
> are permanently gone. The users will need to restart things.
> - Yes, I know this but just wanted to check if there are any other options
> / tools that can support this ?
>
> AFAIK, Enabling the vnc service just start the vnc session as new ( but the
> activities/processes inside the vnc service is still gone)
>

I'm not aware of anything that can do this on a process level or session
level, no. You'll likely need to look at virtual machines for an ability
to suspend and resume things over a hardware reboot.
Reply all
Reply to author
Forward
0 new messages