[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Linux startup, Wheezy -- a required script won't run on startup, but can run manually without any trouble



The Jessie Debian Handbook states:
"The two-figures number
that follows had historically been used to define the order in which services had to be started,
but nowadays the default boot system uses insserv , which schedules everything automatically
based on the scripts’ dependencies." on pg 188.

On Thu, Jun 9, 2016 at 3:56 PM, Dan Purgert <dan@djph.net> wrote:
Andrew McGlashan wrote:
>[snip]
> The script does have #! /bin/sh at the top and /bin/sh does point to
> /bin/dash as follows:
>
> # ls -l /bin/sh
> lrwxrwxrwx 1 root root 4 Feb 21 17:40 /bin/sh -> dash

Try running it as 'sh <yourscript>' or 'dash <yourscript>' -- you're
probably doing "bashisms" in there somewhere that're causing things to
fail.


--
|_|O|_| Registered Linux user #585947
|_|_|O| Github: https://github.com/dpurgert
|O|O|O|



Reply to: