Systemd service does not work

Forums / NoMachine for Linux / Systemd service does not work

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #40133
    jrespeto
    Participant

    Issue:

    With a new installation and starting the service with systemd, the nxd service is not loading and requires a –restart to get it working:


    # showing nxserver is off
    [root@malware-eqNPc ~]# netstat -ntlp
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 300/sshd: /usr/bin/
    tcp 0 0 127.0.0.54:53 0.0.0.0:* LISTEN 267/systemd-resolve
    tcp 0 0 0.0.0.0:5355 0.0.0.0:* LISTEN 267/systemd-resolve
    tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 267/systemd-resolve
    tcp6 0 0 :::22 :::* LISTEN 300/sshd: /usr/bin/
    tcp6 0 0 :::5355 :::* LISTEN 267/systemd-resolve


    # Starting nxserver – nxd not running
    [root@malware-eqNPc ~]# systemctl start nxserver
    [root@malware-eqNPc ~]# netstat -ntlp
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 300/sshd: /usr/bin/
    tcp 0 0 127.0.0.1:23655 0.0.0.0:* LISTEN 31560/nxserver.bin
    tcp 0 0 127.0.0.54:53 0.0.0.0:* LISTEN 267/systemd-resolve
    tcp 0 0 0.0.0.0:5355 0.0.0.0:* LISTEN 267/systemd-resolve
    tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 267/systemd-resolve
    tcp6 0 0 :::22 :::* LISTEN 300/sshd: /usr/bin/
    tcp6 0 0 :::5355 :::* LISTEN 267/systemd-resolve


    # restarting nxserver – nxd started and working
    [root@malware-eqNPc ~]# /etc/NX/nxserver –restart
    NX> 162 Disabled service: nxserver.
    NX> 162 Service: nxnode already disabled.
    NX> 162 Service: nxd already disabled.
    NX> 111 New connections to NoMachine server are enabled.
    NX> 161 Enabled service: nxserver.
    NX> 162 WARNING: Cannot find X servers running on this machine.
    NX> 162 WARNING: A new virtual display will be created on demand.
    NX> 161 Enabled service: nxd.
    [root@malware-eqNPc ~]# netstat -ntlp
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 300/sshd: /usr/bin/
    tcp 0 0 127.0.0.1:23670 0.0.0.0:* LISTEN 31613/nxserver.bin
    tcp 0 0 127.0.0.54:53 0.0.0.0:* LISTEN 267/systemd-resolve
    tcp 0 0 0.0.0.0:5355 0.0.0.0:* LISTEN 267/systemd-resolve
    tcp 0 0 0.0.0.0:4000 0.0.0.0:* LISTEN 31644/nxd
    tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 267/systemd-resolve
    tcp6 0 0 :::22 :::* LISTEN 300/sshd: /usr/bin/
    tcp6 0 0 :::5355 :::* LISTEN 267/systemd-resolve
    tcp6 0 0 :::4000 :::* LISTEN 31644/nxd

    [Unit]
    Description=NoMachine Server daemon

    After = syslog.target network.target network-online.target sshd.service http-daemon.target.service htd.service
    Wants = network-online.target

    [Service]
    User=nx
    Group=nx

    ExecStart=-/etc/NX/nxserver –daemon

    KillMode=process
    SuccessExitStatus=0 SIGTERM
    Restart=always

    [Install]
    WantedBy=multi-user.target

    #40305
    Britgirl
    Keymaster

    Hi, something similar to this has been dealt with before in the forums already. Please take a look at https://forums.nomachine.com/topic/enabling-a-user-does-not-enable-it. Does it help?

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.