1Contents 2======== 3 41. My platform is listed as unsupported. What to do now? 52. Support status for various platforms 63. Getting the uptime on unsupported platforms 7 81. My platform is unsupported. What to do now? 9============================================== 10 11First of all, do not panic. Chances are that uptimed will work on your 12platform with little or no modifications. 13 14There are basically three reasons why your platform could be unsupported: 15 16- I have insufficient knowledge to get my code to compile, 17- I have insufficient knowledge how to get your platform's uptime, 18- I have insufficient knowledge of your platforms startup process and files 19 202. Support status for various platforms 21======================================= 22 23BSD (other than FreeBSD) 24------------------------ 25 26If someone can tell me the /usr/local/etc/rc.d equivalent for other BSD 27systems, these can be officially supported. Thanks! 28 29HP/UX 30----- 31 32Uptimed now works and compiles on HP/UX (at least under 10.20) with thanks 33to patches from Helge Deller <deller@gmx.de>. Not being an expert on HP/UX 34startup files, any help is very welcome here. Currently /sbin/rc is used: 35find the following part at the end of /sbin/rc and insert the lines 36commented with "insert me!". 37 38---- /sbin/rc ---- 39# Output message to indicate completion 40# 41echo 42if [ $BOOT = 1 ]; then 43 echo "Creating unique uptime daemon bootid..." # insert me ! 44 /usr/local/sbin/uptimed -b # insert me ! 45 echo "Start uptimed..." # insert me ! 46 /usr/local/sbin/uptimed # insert me ! 47 echo "The system is ready." 48else 49---- /sbin/rc ---- 50 513. Getting the uptime on unsupported platforms 52---------------------------------------------- 53 54I have written a quick and inaccurate hack calculating the uptime from the 55current time and the timestamp made at boottime. 56 57This is very portable and thus will also let uptimed run on platforms where 58I do not know of how to get the real uptime. 59 60However, this is also very inaccurate, because: 61 621) the boottime timestamp can be extremely delayed due to fscking etc. 632) when the system time changes (for example timezone changes) the 64 boottime timestamp does not, creating even more inaccuracy. 65 66However, this hack should at least _work_. 67 68If you can send me <radek@podgorny.cz> any information on how to get the 69uptime on your platform, it will be appreciated very much. 70