I'm using Raspbian Stretch and I installed XRDP from APT:
sudo apt-get install xrdp
After that, the XRDP service is started automatically on boot. Now, I would like to disable the autostart, so I tried to issue the following command that usually does the job:
sudo systemctl disable xrdp
The output is:
Synchronizing state of xrdp.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable xrdp
but when I reboot the Pi, the service is always up and running:
pi@raspberrypi:~ $ sudo service xrdp status
● xrdp.service - xrdp daemon
Loaded: loaded (/lib/systemd/system/xrdp.service; disabled; vendor preset: enabled)
Active: active (running) since Mon 2018-07-30 23:33:29 CEST; 18h ago
Docs: man:xrdp(8)
man:xrdp.ini(5)
Main PID: 474 (xrdp)
CPU: 50ms
CGroup: /system.slice/xrdp.service
└─474 /usr/sbin/xrdp
Jul 30 23:33:28 raspberrypi systemd[1]: Starting xrdp daemon...
Jul 30 23:33:28 raspberrypi systemd[1]: xrdp.service: PID file /run/xrdp/xrdp.pid not readable (yet?) after start: No such file or directory
Jul 30 23:33:29 raspberrypi systemd[1]: Started xrdp daemon.
Jul 30 23:33:30 raspberrypi xrdp[474]: (474)(1996448352)[INFO ] starting xrdp with pid 474
Jul 30 23:33:30 raspberrypi xrdp[474]: (474)(1996448352)[INFO ] listening to port 3389 on 0.0.0.0
I'm sure I'm missing something.
systemctl status xrdp