Re: [courier-users] /var/run issues

2013-03-30 Thread Alessandro Vesely
On Sat 23/Feb/2013 00:24:13 +0100 Sam Varshavchik wrote:
 Kristian Duus Østergaard writes:
 On 2013-02-22 14:35, Sam Varshavchik wrote:
 Kristian Duus Østergaard writes:

  mkdir -p ${PIDFILE%/*}

 Hopefully, that's all that your Gentoo package puts into /var/run.

 If your package uses the courier.sysvinit script, you can just
 stick a mkdir -p in there, for now.

 The reason I raised it - is that it seems most distro's are moving
 to having /run or /var/run be a tmpfs filesystem.
 
 That's fine. There are about half a dozen places where a pidfile gets
 created, so I'll have to touch all of them; but this is something you
 can hack in, quickly.

For 0.70.20130316, the -p seems to have gone lost, so one gets many
mkdir: cannot create directory `/var/run/whatever': File exists
No harm, when one knows they're innocuous...

autoconf instantiates an MKDIR_P if portability is an issue.  It may
create a relative path to install-sh if -p is not supported.  See:
http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Particular-Programs.html#index-AC_005fPROG_005fMKDIR_005fP-276

-- 






























--
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] /var/run issues

2013-02-23 Thread Matus UHLAR - fantomas
On 2013-02-22 14:35, Sam Varshavchik wrote:
  I've had to reboot a couple of times this last month and due to a change in
 Gentoo /var/run is now a link to /run which is a tmpfs filesystem.
 The problem is that /run is wiped on each boot - for good reasons - but this
 means that /run/courier is not created. When the directory is missing 
 courier
 fails to start. Would it not be possible to put something like the 
 following in
 the startup:

 if ( ! -d ${PIDFILE%/*} )
 then
  mkdir -p ${PIDFILE%/*}
 fi

 Hopefully, that's all that your Gentoo package puts into /var/run.

 If your package uses the courier.sysvinit script, you can just stick a mkdir
 -p in there, for now.

On 23.02.13 00:10, Kristian Duus Østergaard wrote:
The reason I raised it - is that it seems most distro's are moving to having
/run or /var/run be a tmpfs filesystem.

then, a distro has to take care about /var/run subdirectories
-- 
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
We are but packets in the Internet of life (userfriendly.org)

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


[courier-users] /var/run issues

2013-02-22 Thread Kristian Duus Østergaard
Hi Sam,

 I've had to reboot a couple of times this last month and due to a change in
Gentoo /var/run is now a link to /run which is a tmpfs filesystem.
The problem is that /run is wiped on each boot - for good reasons - but this
means that /run/courier is not created. When the directory is missing courier
fails to start. Would it not be possible to put something like the following in
the startup:

if ( ! -d ${PIDFILE%/*} )
then
 mkdir -p ${PIDFILE%/*}
fi

Regards
 Kristian Duus Østergaard

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] /var/run issues

2013-02-22 Thread Sam Varshavchik

Kristian Duus Østergaard writes:


Hi Sam,

 I've had to reboot a couple of times this last month and due to a change in
Gentoo /var/run is now a link to /run which is a tmpfs filesystem.
The problem is that /run is wiped on each boot - for good reasons - but this
means that /run/courier is not created. When the directory is missing courier
fails to start. Would it not be possible to put something like the following  
in

the startup:

if ( ! -d ${PIDFILE%/*} )
then
 mkdir -p ${PIDFILE%/*}
fi


Hopefully, that's all that your Gentoo package puts into /var/run.

If your package uses the courier.sysvinit script, you can just stick a mkdir  
-p in there, for now.




pgp8K5E8W5Xmp.pgp
Description: PGP signature
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] /var/run issues

2013-02-22 Thread Kristian Duus Østergaard
On 2013-02-22 14:35, Sam Varshavchik wrote:
 Kristian Duus Østergaard writes:

 Hi Sam,

  I've had to reboot a couple of times this last month and due to a change in
 Gentoo /var/run is now a link to /run which is a tmpfs filesystem.
 The problem is that /run is wiped on each boot - for good reasons - but this
 means that /run/courier is not created. When the directory is missing courier
 fails to start. Would it not be possible to put something like the following 
 in
 the startup:

 if ( ! -d ${PIDFILE%/*} )
 then
  mkdir -p ${PIDFILE%/*}
 fi

 Hopefully, that's all that your Gentoo package puts into /var/run.

 If your package uses the courier.sysvinit script, you can just stick a mkdir
 -p in there, for now.

It's based off of your script but not identical - I'll see if I can make a
sensible patch for Gentoo.

The reason I raised it - is that it seems most distro's are moving to having
/run or /var/run be a tmpfs filesystem.

Regards
 Kristian

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] /var/run issues

2013-02-22 Thread Sam Varshavchik

Kristian Duus Østergaard writes:


On 2013-02-22 14:35, Sam Varshavchik wrote:
 Kristian Duus Østergaard writes:

 Hi Sam,

  I've had to reboot a couple of times this last month and due to a change  
in

 Gentoo /var/run is now a link to /run which is a tmpfs filesystem.
 The problem is that /run is wiped on each boot - for good reasons - but  
this
 means that /run/courier is not created. When the directory is missing  
courier
 fails to start. Would it not be possible to put something like the  
following in

 the startup:

 if ( ! -d ${PIDFILE%/*} )
 then
  mkdir -p ${PIDFILE%/*}
 fi

 Hopefully, that's all that your Gentoo package puts into /var/run.

 If your package uses the courier.sysvinit script, you can just stick a  
mkdir

 -p in there, for now.

It's based off of your script but not identical - I'll see if I can make a
sensible patch for Gentoo.

The reason I raised it - is that it seems most distro's are moving to having
/run or /var/run be a tmpfs filesystem.


That's fine. There are about half a dozen places where a pidfile gets  
created, so I'll have to touch all of them; but this is something you can  
hack in, quickly.




pgp1Y6jkCX9bM.pgp
Description: PGP signature
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users