-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I don't use thttpd or Ubuntu, but have run across similar issues for other projects where /var/run is a tmpfs. Why not just dump the lock and PID files in /var/run and skip making a smokeping directory? This would save you having to detect or create it at all.
As for which is more professional...using several of the machines we have around here as an example: Some packages create a directory, some just dump the files directly in /var/run and I don't see either as being more or less professional. In one case where I run smokeping on a machine on which I don't have root and cannot write outside of my directories, I put my lock and PID files in <smokepingroot>/var. SideNote: putting the lockfile in the tmpfs would save you the hassle of detecting a stale lockfile upon a failure of the box as it would be removed upon reboot. /Ryan Stephen wrote: > I use thttpd and adapted smokeping to work with it. > > The reasoning is that because I only monitor my LAN > and it has only 2-3 users, the router and cable model, > there is no real need to fping outside the LAN. > > 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. > > 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. > > However, /var/run/smokeping can be checked at bootup and > created before smokeping is started. This saves having to > check for it everytime smokeping is started. > > Which is actually more professional? checking for the directory > from /etc/init.d/smokeping, and if it doesn't exist, creating it > and assigning permission to smokeping, or doing so from start-up? > > always > > _______________________________________________ > smokeping-users mailing list > [email protected] > https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users - -- Ryan M. Harden, BS, KC9IHX Office: 217-265-5192 CITES - Network Engineering Cell: 630-363-0365 2130 Digital Computer Lab Fax: 217-244-7089 1304 W. Springfield email: [EMAIL PROTECTED] Urbana, IL 61801 University of Illinois at Urbana/Champaign University of Illinois - ICCN -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFHme/xtuPckBBbXboRAjQ0AKCvUMO3kkrZzE6nv6UzgejT4kyiugCg0f6P ePEHh4utekpcH+NJMTbHOS0= =8uMz -----END PGP SIGNATURE----- _______________________________________________ smokeping-users mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
