I think there are multiple things one could do to achieve this, but am uncertain which way to go:

  • if you use systemd create a systemd service I guess? How to create systemd service that runs a (python) script on startup?
  • some files similar to .bashrc always run on system startup/boot?; use this if you are less fancy / have no systemd
  • Shadow@lemmy.ca
    link
    fedilink
    English
    arrow-up
    8
    ·
    14 hours ago

    If you want to be lazy, use crontab @reboot

    Making a systemd unit is the “correct” way

    • helloworld@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      5
      ·
      edit-2
      14 hours ago

      Yeah after searching on the arch wiki, I guess systemd timers, not services, are specifically what I was interested in, thanks!