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 22:24 +0100, Patrick O'Callaghan wrote:
> That's actually a different service. Insync has a GUI-based app called
> 'insync' for workstations and a separate app called 'insync-headless'
> intended for servers. The two are essentially independent of each other
> and have different requirements. For historical reasons I'm using the
> latter.

After writing the above, a light dawned. Given that insync-headless is
marketed for servers, its natural mode of operation is going to be
independent of who is logged in. In turns out that the (undocumented)
configuration options include one called 'run_on_startup', which by
default is set to False. I changed it to True, disabled my systemd
service, and rebooted.

Lo and behold, insync-headless is now running on boot. What the config
option does is install a crontab entry under the user's /var/spool/cron
directory:

$ crontab -l

@reboot insync-headless start >/dev/null 2>&1

This runs independently of login sessions (multiple users might have
multiple such entries). That appears to be the solution. I stress again
that this is *undocumented*.

Apologies for the noise and thanks to all who attempted to help.

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