I have set up the /etc/systemd/system/rc-local.service as follows:
[Unit]
Description=/etc/rc.local Compatibility
ConditionPathExists=/etc/rc.local
[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99
[Install]
WantedBy=multi-user.target
The rights are set up properly on the /etc/rc.local script:
File: /etc/rc.local
...
Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
The service (hence the rc.local script) is started successfully every time the machine starts up.
However, the script does not get run every time a user logs in via ssh.
What am I missing? I'm starting to believe that I have the concept wrong.