On 29/06/2021 19:42, Patrick O'Callaghan wrote:
I'm trying to get a specific service to start on login, and the usual
method (KDE Autostart) isn't working so I'm trying to do it with a
systemd unit:
$ cat startinsync.service
[Unit]
Description=insync-headless service
After=default.target
[Service]
ExecStart=/bin/sh /usr/bin/insync-headless start
KillSignal=SIGINT
[Install]
WantedBy=default.target
The docs say that the place to put the unit file is given by:
$ pkg-config systemd --variable=systemduserunitdir
/usr/lib/systemd/user
So I copied the file there:
$ ls -l /usr/lib/systemd/user/startinsync.service
-rw-r--r--. 1 root root 177 Jun 29 12:31 /usr/lib/systemd/user/startinsync.service
and tried to enable it:
$ sudo systemctl enable startinsync
Failed to enable unit: Unit file startinsync.service does not exist.
I'm out of ideas.
Did you do
systemctl daemon-reload
--
Remind me to ignore comments which aren't germane to the thread.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure