~alpine/users

2 2

alpinelinux 3.11How to run script on startup

Eduardo Gonçalves <3duardo.goncalves@gmail.com>
Details
Message ID
<CAE3dg3z65jBP4AfhM1Qzp46nyyKB+A0Xdv0k9=7P1jPnTWUkew@mail.gmail.com>
DKIM signature
missing
Download raw message
Hi,
I need help on add a script to run on startup on alpinelinux 3.11.

I've added my script to /etc/local.d/myscript.start and enable: rc-update
add local default

but it is not running on system startup.


--
*Eduardo Gonçalves*
Konstantin Kulikov <k.kulikov2@gmail.com>
Details
Message ID
<ed67340d-29c0-4a5a-0c45-79be9ad45641@gmail.com>
In-Reply-To
<CAE3dg3z65jBP4AfhM1Qzp46nyyKB+A0Xdv0k9=7P1jPnTWUkew@mail.gmail.com> (view parent)
DKIM signature
missing
Download raw message
On 3/2/20 6:30 PM, Eduardo Gonçalves wrote:
> Hi,
> I need help on add a script to run on startup on alpinelinux 3.11.
> 
> I've added my script to /etc/local.d/myscript.start and 
> enable: rc-update add local default
> 
> but it is not running on system startup.

Did you mark your script as executable (chmod +x 
/etc/local.d/myscript.start)?
Eduardo Gonçalves <3duardo.goncalves@gmail.com>
Details
Message ID
<CAE3dg3z41=xinJMKxTiAMo0dBA1p3ZHOz6wfMuPpWmLZK78qkw@mail.gmail.com>
In-Reply-To
<ed67340d-29c0-4a5a-0c45-79be9ad45641@gmail.com> (view parent)
DKIM signature
missing
Download raw message
Hello,
In fact it’s running but it’s not echoing msgs in startup as it used to
echo in version alpine:3.8

Em seg, 2 de mar de 2020 às 13:18, Konstantin Kulikov <k.kulikov2@gmail.com>
escreveu:

> On 3/2/20 6:30 PM, Eduardo Gonçalves wrote:
> > Hi,
> > I need help on add a script to run on startup on alpinelinux 3.11.
> >
> > I've added my script to /etc/local.d/myscript.start and
> > enable: rc-update add local default
> >
> > but it is not running on system startup.
>
> Did you mark your script as executable (chmod +x
> /etc/local.d/myscript.start)?
>
>
Reply to thread Export thread (mbox)