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

Re: Bug#179125: maintainer scripts tries to exec script in /tmp

On Mon, 2003-02-03 at 23:01, Jamie Wilkinson wrote:...
> plank% sh /tmp/foo

> Yes.  I would be happy for maintainer scripts to source temporary scripts, in
> this way.

This is, effectively what I am going to do.

On Mon, 2003-02-03 at 23:05, Jamie Wilkinson wrote:

> Am I correct in thinking this tempfile is generated in the init script?
> I am curious what extraordinary things you must be doing for this program that
> it requires a temporary executable to be written and removed each time the init
> script is called.

That is because I responded to Russell Coker's wishes for SELinux!

What I used to do was 'su - postgres -c "command ..."'.

Russell complained that this wouldn't work with SELinux's security and
that I should use start-stop-daemon instead.  In order to do that, I
have to give it a script to run; otherwise I can't feed a sequence of
commands to one run of start-stop-daemon.

Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight, UK                             http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
     "O come, let us worship and bow down; let us kneel 
      before the LORD our maker."            Psalms 95:6 

Reply to: