This is on an Ubuntu host. That may be part of my hangup; I may have mixed in some Debian settings by mistake, though I think I’ve fixed my early mishaps… Anyhow:
I have a file:
~/config/systemctl/user/hello.service
…which contains:
[Unit]
Description=hello FooBar
[Service]
Type=simple
ExecStart=/bin/echo FooBar
[Install]
WantedBy=multi-user.target
I do: systemctl --user daemon-reload
(no error message);
…then, systemctl --user status hello.service
…returns: Unit hello.service could not be found.
I know I’m missing something basic. But no matter what I’ve tried, the script doesn’t show up where it should. For instance, systemctl --user list-unit-files
doesn’t show it. And of course, its little executable doesn’t run.
What am I leaving out?