I configured a unit which is expected to run simple logging service:$ cat /etc/systemd/system/msgwriter.service [Unit]Description=Writes the values of the counter to the file[Install]WantedBy=multi-user.target[Service]Type=forkingExecStart=/home/user/dev/startThe problem is home directory is encrypted. There is an error in the system's logs:systemd[1018]: msgwriter.service: Failed at step EXEC spawning /home/user/dev/start: No such file or directoryI know I can move my service into /usr/local/bin. But the final goal is to start it as a user.
How to autostart a service with systemd from a user's home?
systemd;autostart