I have an app.service that I have been using on a debian machine that is symlinked to /etc/systemd/system/multi-user.target.wants
it works well and starts my app.
I have recently been working on switching to using yocto and creating a symlink in the same location but systemctl does not seem to “load” the service. When I try to find my service in systemctl list-unit-files
the service does not exist. systemctl status app
results in `Unit app.serivce could not be found.
Other services in the multi-user.target.wants are running fine (These are preloaded by yocto)
[Unit]
Description=Main App Runner
Requires=network.target
After=network.target
[Service]
Type=simple
ExecStart=/home/tyleax/mainapp
ExecStop=/home/tyleax/led-control red
WatchdogSec=60
Restart=always
[Install]
WantedBy=multi-user.target
Anyone have any idea why the service does not load on yocto, even though it’s the same file/permission/symlink?