ProIT
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
bleistift2@sopuli.xyz to Programmer Humor@programming.devEnglish ·
edit-2
5 months ago

Autostart in Linux Mint

sopuli.xyz

external-link
message-square
38
link
fedilink
264
external-link

Autostart in Linux Mint

sopuli.xyz

bleistift2@sopuli.xyz to Programmer Humor@programming.devEnglish ·
edit-2
5 months ago
message-square
38
link
fedilink
  • Snot Flickerman@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    35
    ·
    edit-2
    5 months ago

    When all else fails…

    crontab -e

    @reboot sleep 300 && sudo ./myshell.sh

    (this is actually broken on some distros)

    • Scoopta@programming.dev
      link
      fedilink
      arrow-up
      21
      ·
      5 months ago

      I’ve been in the systemd world so long none of my systems even have cron

      • GravitySpoiled@lemmy.ml
        link
        fedilink
        English
        arrow-up
        25
        ·
        5 months ago

        That sounds like a sad world. I like cron

        • Scoopta@programming.dev
          link
          fedilink
          arrow-up
          2
          ·
          5 months ago

          LOL, I actually like systemd timers, cron seems easier to setup quickly but I do like some of the features of timers combined with services.

      • xmunk@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        5 months ago

        Reject systemd embrace bashrc.

    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      5 months ago

      Though, not every cron supports that.

      Also, if you are packaging software, you have to do it the right way. But if not, it’s often easier to go and install an init script.

      • Snot Flickerman@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        3
        ·
        5 months ago

        I actually edited my comment right as you were responding. It’s definitely broken in some distros, I think debian/ubuntu.

        • marcos@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          5 months ago

          It’s not broken. You just have to get a cron that supports it. Debian has at least one that does, but it’s not the default one.

    • bleistift2@sopuli.xyzOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      5 months ago

      Thanks. man 5 crontab says the @reboot syntax is supported, so I’ll give that a try if I don’t stumble upon a different solution.

    • bleistift2@sopuli.xyzOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      5 months ago

      Why the long delay?

      • Snot Flickerman@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        13
        ·
        edit-2
        5 months ago

        Just to make sure it pops off after fully starting up. I run a lot of old hardware, so it’s useful for me. You may not need a delay.

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.11K users / day
  • 4.67K users / week
  • 9.13K users / month
  • 17.8K users / 6 months
  • 1 local subscriber
  • 23.1K subscribers
  • 1.39K Posts
  • 52.2K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org