Re: Bug#179125: maintainer scripts tries to exec script in /tmp
On Mon, 2003-02-03 at 13:40, Andreas Metzler wrote:
>
> > /sbin/start-stop-daemon --chuid postgres --name `basename $SCRIPTFILE`
> > --startas $SCRIPTFILE --start
>
> > I'm not sure how to express the command in a form that will work if
> > $SCRIPTFILE can't be executed directly.
>
> Just guessing:
> su - postgres -c "/usr/bin/perl /tmp/config.151751"
> cu andreas
Using "su - postgres -c" is excluded because it won't work with SELinux!
This method seems to work:
linda:/home/olly# /sbin/start-stop-daemon --name fred
--startas /bin/bash --start -- /tmp/ol
--
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: