Re: Creating a user-level systemd unit - SOLVED

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

 



On Wed, 2021-06-30 at 11:41 +0100, Patrick O'Callaghan wrote:
> On Tue, 2021-06-29 at 19:37 +0100, Patrick O'Callaghan wrote:
> > On Tue, 2021-06-29 at 21:28 +0800, Qiyu Yan wrote:
> > > 在 2021-06-29星期二的 12:42 +0100,Patrick O'Callaghan写道:
> > > > 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:
> > > 
> > > How is that not working? Is it due to systemd-xdg-autostart-
> > > generator?
> > 
> > I need to call a command with an argument, but KDE Autostart only
> > allows you to specify the name of an executable with no arguments.
> > Even
> > putting it in a Shell script doesn't work because although the
> > script
> > is called it immediately terminates, even though the exact same
> > command
> > when executed from the command line puts itself in the background,
> > which is what it's supposed to do.
> 
> After re-reading systemd.service(1) I added the line:
> 
> Type=forking
> 
> to the service file, and now the script is not being terminated,
> which
> is what I wanted.
> 
> IOW, this seems to be the solution, or at least *a* solution. There
> may
> be an alternate solution using KDE Autostart, but for now I'm
> satisfied.

But of course there's always something else. After logging out, the
service is killed, which is fine, but it doesn't start again with a new
login. I assumed that user units would do this automatically, but it
seems they don't.

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