Re: How to use logrotate postrotate *bash* script

2013-12-05 Thread Bob Proulx
Steffen Dettmer wrote: > logrotate seems to execute "postrotate" scripts using /bin/sh and I > found no way where to specify which script interpreter to use. > Starting with a she-bang line seem to have no effect. Even if I > manually run logrotate as root who has /bin/bash as login shell, > /bin/s

Re: How to use logrotate postrotate *bash* script

2013-12-05 Thread Ralf Mardorf
On Thu, 2013-12-05 at 17:03 +, Darac Marjal wrote: > Just a thought, how about making your postrotate command be "/bin/bash > /path/to/myscript.sh"? This was already mentioned, resp. the shebang would work, if the script is called by simply path/myscript.sh, IOW without a leading sh, which usu

Re: How to use logrotate postrotate *bash* script

2013-12-05 Thread Darac Marjal
On Thu, Dec 05, 2013 at 10:31:01AM +0100, Steffen Dettmer wrote: > Hi, > > logrotate seems to execute "postrotate" scripts using /bin/sh and I > found no way where to specify which script interpreter to use. > Starting with a she-bang line seem to have no effect. Even if I > manually run logrotate

Re: How to use logrotate postrotate *bash* script

2013-12-05 Thread David Guntner
Steffen Dettmer grabbed a keyboard and wrote: > Hi, > > logrotate seems to execute "postrotate" scripts using /bin/sh and I > found no way where to specify which script interpreter to use. > Starting with a she-bang line seem to have no effect. Even if I > manually run logrotate as root who has /b

Re: How to use logrotate postrotate *bash* script

2013-12-05 Thread Ralf Mardorf
On Thu, 2013-12-05 at 10:44 +0100, Ralf Mardorf wrote: > On Thu, 2013-12-05 at 10:43 +0100, Ralf Mardorf wrote: > > On Thu, 2013-12-05 at 10:31 +0100, Steffen Dettmer wrote: > > > logrotate seems to execute "postrotate" scripts using /bin/sh and I > > > found no way where to specify which script in

Re: How to use logrotate postrotate *bash* script

2013-12-05 Thread Ralf Mardorf
On Thu, 2013-12-05 at 10:43 +0100, Ralf Mardorf wrote: > On Thu, 2013-12-05 at 10:31 +0100, Steffen Dettmer wrote: > > logrotate seems to execute "postrotate" scripts using /bin/sh and I > > found no way where to specify which script interpreter to use. > > Starting with a she-bang line seem to hav

Re: How to use logrotate postrotate *bash* script

2013-12-05 Thread Ralf Mardorf
On Thu, 2013-12-05 at 10:31 +0100, Steffen Dettmer wrote: > logrotate seems to execute "postrotate" scripts using /bin/sh and I > found no way where to specify which script interpreter to use. > Starting with a she-bang line seem to have no effect. Even if I > manually run logrotate as root who has

How to use logrotate postrotate *bash* script

2013-12-05 Thread Steffen Dettmer
Hi, logrotate seems to execute "postrotate" scripts using /bin/sh and I found no way where to specify which script interpreter to use. Starting with a she-bang line seem to have no effect. Even if I manually run logrotate as root who has /bin/bash as login shell, /bin/sh is used. How to make logr