Upstart/Bash Issue on 12.04 . . .

James Hunt james.hunt at ubuntu.com
Fri Mar 21 08:31:47 UTC 2014


Hi Marcus,

2014-03-20 13:29 GMT+00:00 <marcus at colisp.com>:

> Good day!
>
> Just "discovered" Upstart after ruining about a week's worth of spare
> time trying to get something done with System V.  The sooner we move
> beyond the need to use init.d/rcX.d for things like parallel
> launching, the better...
>
> On that note, I posted a request for assistance up on the General
> Help section of Ubuntu Forums; and wasn't able to get much help with
> my query.  Seems the community has just passed by Upstart.
> Disappointed --
>
> At any rate, I simply need to launch a bash script from Upstart; and
> cannot get around everything defaulting to dash instead.  I've read
> the relevant documentation, and tried all I can reason through from
> there: No dice.
>
> Is there some straightforward way of getting a simple bash-banglined
> script to run with bash instead of dash under Upstart???
>

There are good reason for Upstart using /bin/sh - it's smaller, possibly
faster, standards compliant and theoretically probably safer (in the sense
that it has more restricted functionality than bash). As such, we'd
recommend that you rework the script to use /bin/sh where possible (or just
have the Upstart job call the bash script).

However, if you really want to use bash or some other shell in the job
itself:

 http://upstart.ubuntu.com/cookbook/#changing-the-default-shell



>
> Thanks so much; and have a great day --
>
>
> --
> upstart-devel mailing list
> upstart-devel at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/upstart-devel
>



-- 
Kind regards,

James.
--
James Hunt
____________________________________
#upstart on freenode
http://upstart.ubuntu.com/cookbook
https://lists.ubuntu.com/mailman/listinfo/upstart-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/upstart-devel/attachments/20140321/49648b09/attachment.html>


More information about the upstart-devel mailing list