Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #256111

Re: auto restarting in crontab

From Jeffrey Walton <noloader@gmail.com>
Newsgroups linux.debian.user
Subject Re: auto restarting in crontab
Date 2023-03-17 00:40 +0100
Message-ID <Ga5mp-cYUi-7@gated-at.bofh.it> (permalink)
References (5 earlier) <G9VGp-cTbN-5@gated-at.bofh.it> <G9YEh-cUWG-5@gated-at.bofh.it> <G9ZK1-cVy1-1@gated-at.bofh.it> <Ga46Z-cYdP-3@gated-at.bofh.it> <Ga4Tn-cYJ7-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Mar 16, 2023 at 7:03 PM Dan Ritter <dsr@randomstring.org> wrote:
>
> debian-user@howorth.org.uk wrote:
> > Dan Ritter <dsr@randomstring.org> wrote:
> > > pyh@ymail.ne.jp wrote:
> > > > For dev stuff, for example, I have many versions of ruby installed
> > > > in the system by rbenv.
> > > >
> > > > Since I often change default ruby in interactive shell, this may
> > > > break the ruby for sysadmin job in crontab. What’s the solution for
> > > > this?
> > >
> > > Everywhere it matters, set an explicit PATH at the beginning.
> > >
> > > There is no other solution.
> >
> > Err, I know nothing about the subject but that doesn't seem to
> > correspond with what it says in the readme at
> > https://github.com/rbenv/rbenv
>
> rbenv is a fancy way of setting the PATH. It changes out setting
> the PATH directly for requiring you to set up a .ruby-version
> file for every project. If you commit to it, it might be better
> for you. If you don't, it's harder to debug what's going wrong.
>
> In general, development environments might want multiple Ruby
> versions but production should only have one. If the production
> version isn't the one that Debian is currently shipping, the
> Debian-shipped version shouldn't be installed at all.

Likely this. Debian removed update-alternatives for Ruby; see [1]. And
from [1] under "Installing Ruby versions not packaged in Debian":

    While ruby-build is a great tool to build Ruby versions
    that are not available via APT, you should still use the
    Debian-packaged versions of Ruby whenever possible since
    they are tested and supported by the Debian community.

[1] https://wiki.debian.org/Ruby

Jeff

Back to linux.debian.user | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

auto restarting in crontab coreyh@free.fr - 2023-03-16 02:00 +0100
  Re: auto restarting in crontab Nicholas Geovanis <nickgeovanis@gmail.com> - 2023-03-16 02:10 +0100
    Re: auto restarting in crontab Greg Wooledge <greg@wooledge.org> - 2023-03-16 02:40 +0100
      Re: auto restarting in crontab coreyh@free.fr - 2023-03-16 02:50 +0100
        Re: auto restarting in crontab Greg Wooledge <greg@wooledge.org> - 2023-03-16 04:20 +0100
          Re: auto restarting in crontab coreyh@free.fr - 2023-03-16 07:30 +0100
        Re: auto restarting in crontab "pyh@ymail.ne.jp" <pyh@ymail.ne.jp> - 2023-03-16 05:00 +0100
          Re: auto restarting in crontab "pyh@ymail.ne.jp" <pyh@ymail.ne.jp> - 2023-03-16 05:10 +0100
            Re: auto restarting in crontab Jeremy Ardley <jeremy@ardley.org> - 2023-03-16 06:00 +0100
  Re: auto restarting in crontab Nicolas George <george@nsup.org> - 2023-03-16 09:00 +0100
    Re: auto restarting in crontab Greg Wooledge <greg@wooledge.org> - 2023-03-16 12:10 +0100
      Re: auto restarting in crontab Nicolas George <george@nsup.org> - 2023-03-16 12:10 +0100
  Re: auto restarting in crontab Greg Wooledge <greg@wooledge.org> - 2023-03-16 12:30 +0100
    Re: auto restarting in crontab Christoph Brinkhaus <c.brinkhaus@t-online.de> - 2023-03-16 14:00 +0100
      Re: auto restarting in crontab Greg Wooledge <greg@wooledge.org> - 2023-03-16 14:10 +0100
        Re: auto restarting in crontab Nicolas George <george@nsup.org> - 2023-03-16 14:20 +0100
          Re: Re: auto restarting in crontab pyh@ymail.ne.jp - 2023-03-16 17:30 +0100
            Re: auto restarting in crontab Dan Ritter <dsr@randomstring.org> - 2023-03-16 18:40 +0100
              Re: auto restarting in crontab Jude DaShiell <jdashiel@panix.com> - 2023-03-16 19:00 +0100
              Re: auto restarting in crontab debian-user@howorth.org.uk - 2023-03-16 23:20 +0100
                Re: auto restarting in crontab Dan Ritter <dsr@randomstring.org> - 2023-03-17 00:10 +0100
                Re: auto restarting in crontab Jeffrey Walton <noloader@gmail.com> - 2023-03-17 00:40 +0100
                Re: auto restarting in crontab Nicolas George <george@nsup.org> - 2023-03-17 13:20 +0100
                Re: auto restarting in crontab debian-user@howorth.org.uk - 2023-03-17 13:20 +0100
                Re: auto restarting in crontab "pyh@ymail.ne.jp" <pyh@ymail.ne.jp> - 2023-03-17 01:10 +0100
                Re: auto restarting in crontab Greg Wooledge <greg@wooledge.org> - 2023-03-17 01:20 +0100
                Re: auto restarting in crontab debian-user@howorth.org.uk - 2023-03-17 13:30 +0100
  Re: auto restarting in crontab Christoph Brinkhaus <c.brinkhaus@t-online.de> - 2023-03-16 12:30 +0100

csiph-web