Johannes!
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
bleistift2@sopuli.xyz to Programmer Humor@programming.devEnglish ·
edit-2
1 year ago

Autostart in Linux Mint

sopuli.xyz

external-link
message-square
37
link
fedilink
1
external-link

Autostart in Linux Mint

sopuli.xyz

bleistift2@sopuli.xyz to Programmer Humor@programming.devEnglish ·
edit-2
1 year ago
message-square
37
link
fedilink
  • Snot Flickerman@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    1 year ago

    When all else fails…

    crontab -e

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

    (this is actually broken on some distros)

    • bleistift2@sopuli.xyzOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year ago

      Why the long delay?

      • Snot Flickerman@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        1 year 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.

    • bleistift2@sopuli.xyzOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year 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.

    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 year 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
        0
        ·
        1 year 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
          0
          ·
          1 year 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.

    • Scoopta@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

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

      • xmunk@sh.itjust.works
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        Reject systemd embrace bashrc.

      • GravitySpoiled@lemmy.ml
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 year ago

        That sounds like a sad world. I like cron

        • Scoopta@programming.dev
          link
          fedilink
          arrow-up
          0
          ·
          1 year 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.

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: !programmer_humor@programming.dev

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.

  • 86 users / day
  • 303 users / week
  • 1.26K users / month
  • 4.54K users / 6 months
  • 0 local subscribers
  • 28K subscribers
  • 1.58K Posts
  • 39.6K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.12
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org