[smokeping-users] converted smokeping to work with thttpd

Niko Tyni ntyni+smokeping-users at mappi.helsinki.fi
Fri Jan 25 19:08:06 CET 2008

On Fri, Jan 25, 2008 at 02:00:19AM -0800, Stephen wrote:
> The only bug I found with my arrangement is that 
> Debian Linux, especially the Ubuntu Linux fork, uses
> /var/run as a tmpfs which means it is volatile.

Yes, Ubuntu makes /var/run tmpfs by default, while Debian currently

> This also means /var/run/smokeping has to be recreated 
> and assigned for use by smokeping, and smokeping does 
> not check for this.
> One fix I saw checked for the existence of /var/run/smokeping
> while running /etc/init.d/smokeping which means it checks
> for the existence only if it is starting smokeping.

That's what the current Ubuntu and Debian smokeping packages do.
>From the Debian package changelog:

 smokeping  (2.2.7-1) unstable; urgency=low

   * New upstream release
   * Create /var/run/smokeping at startup if it doesn't exist.
     Patch from Ubuntu.

 -- Niko Tyni <ntyni at iki.fi>  Sat, 10 Nov 2007 09:55:32 +0200 

In debian/init.d we have:

    if [ ! -d /var/run/smokeping ]; then
        mkdir /var/run/smokeping
        chown ${DAEMON_USER}.root /var/run/smokeping
        chmod 0755 /var/run/smokeping


More information about the smokeping-users mailing list