Re: Creating a user-level systemd unit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2021-06-29 at 19:48 +0800, Ed Greshko wrote:
> 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

Yes.

poc
_______________________________________________
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



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux