Creating a non-SNAP noVNC service

34 views
Skip to first unread message

Richard Mixon

unread,
Mar 20, 2024, 7:54:37 PMMar 20
to noVNC
We are running in an embedded environment with limited disk and memory so we've disabled SNAP on our Ubuntu 22.04 based system.

I've created a systemd service which actually works fine - other than having to check status by looking for "activating" instead of "active".

Pretty sure that's because does not run as a daemon.

How could we better configure this:
  • [Unit]
    Description=Init file for noVNC 1.4.0 proxy
    Documentation=
    After=network.target auditd.service

    [Service]
    ConditionPathExists=/home/n2kowner/n2k/display.xml
    ExecStartPre=/usr/bin/grep -s "mode=\"[Hh][Tt][Mm][Ll]\"" /home/n2kowner/n2k/display.xml
    ExecStart=/home/n2kowner/noVNC-1.4.0/utils/novnc_proxy --vnc localhost:5901 --syslog /dev/log --listen 443 --cert /home/n2kowner/.ssh/self.pem
    ExecStop=pkill -f "/home/n2kowner/noVNC-1.4.0/utils/novnc_proxy"
    Restart=on-failure
    ExecReload=/bin/kill -HUP $MAINPID
    KillMode=process
    Restart=on-failure
    RestartPreventExitStatus=255
    Type=notify
    RuntimeDirectory=/home/n2kowner/noVNC-1.4.0/utils
    RuntimeDirectoryMode=0755

    [Install]
    WantedBy=multi-user.target


Thank you much - Richard

Richard Mixon

unread,
Apr 8, 2024, 4:39:29 PMApr 8
to noVNC
In case anyone else runs in to this issue, the answer to this post also resolved the "Activating" issue:
Thank you again - Richard

Pierre Ossman

unread,
Apr 9, 2024, 4:27:48 AMApr 9
to no...@googlegroups.com, Richard Mixon
On 08/04/2024 22:39, Richard Mixon wrote:
> In case anyone else runs in to this issue, the answer to this post also
> resolved the "Activating" issue:
>
> - https://groups.google.com/g/novnc/c/En1NjIehGb0/m/T17QItf0AQAJ
>
> Thank you again - Richard
>

Thanks for giving everyone an update!

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?

Reply all
Reply to author
Forward
0 new messages