diff options
-rw-r--r-- | system/uptimed/README | 5 | ||||
-rw-r--r-- | system/uptimed/rc.uptimed | 56 | ||||
-rw-r--r-- | system/uptimed/slack-desc | 2 | ||||
-rw-r--r-- | system/uptimed/uptimed.SlackBuild | 14 | ||||
-rw-r--r-- | system/uptimed/uptimed.info | 8 |
5 files changed, 45 insertions, 40 deletions
diff --git a/system/uptimed/README b/system/uptimed/README index e96a9c0bdb0b8..2fbb1725ec9ea 100644 --- a/system/uptimed/README +++ b/system/uptimed/README @@ -24,7 +24,7 @@ To have the daemon launch automatically at boot time, chmod 755 /etc/rc.d/rc.uptimed 2) Add an entry in rc.local with; if [ -x /etc/rc.d/rc.uptimed ]; then - /etc/rc.d/rc.uptimed start + /etc/rc.d/rc.uptimed start & fi Q: Why are my records not saved between reboots? I can see the current uptime @@ -33,3 +33,6 @@ A: The uptimed daemon was possibly not running to regularly save the data to the "/var/spool/uptimed/records" file. See above on how to automatically start the daemon, and confirm that the "/var/spool/uptimed" directory exists and is writable. + +If performing an upgrade, you may need to chmod 755 rc.uptimed and restart the +daemon with "/etc/rc.d/rc.uptimed restart". diff --git a/system/uptimed/rc.uptimed b/system/uptimed/rc.uptimed index b27a36b342046..7425a88ed035a 100644 --- a/system/uptimed/rc.uptimed +++ b/system/uptimed/rc.uptimed @@ -9,51 +9,51 @@ PIDFILE="/var/run/uptimed" START="$UPTIMED" if [ -e $PIDFILE ]; then - STOP="kill $( cat $PIDFILE )" + STOP="kill $( cat $PIDFILE )" else - STOP="killall $UPTIMED" + STOP="killall $UPTIMED" fi CREATEBOOTID="$UPTIMED -b" start() { - echo -n $"Starting $NAME:" - $START - RETVAL=$? - echo + echo -n $"Starting $NAME:" + $START + RETVAL=$? + echo } stop() { - echo -n $"Stopping $NAME:" - $STOP - RETVAL=$? - echo + echo -n $"Stopping $NAME:" + $STOP + RETVAL=$? + echo } createbootid() { - $CREATEBOOTID - RETVAL=$? - $POST + $CREATEBOOTID + RETVAL=$? + $POST } case "$1" in - start) - start + start) + start ;; - stop) - stop - ;; - restart) - stop - start - ;; - createbootid) - createbootid - ;; - *) - echo $"Usage: $0 {start|stop|restart|createbootid}" - RETVAL=1 + stop) + stop + ;; + restart) + stop + start + ;; + createbootid) + createbootid + ;; + *) + echo $"Usage: $0 {start|stop|restart|createbootid}" + RETVAL=1 esac exit $RETVAL diff --git a/system/uptimed/slack-desc b/system/uptimed/slack-desc index e91a029db9856..d22fa932dffdd 100644 --- a/system/uptimed/slack-desc +++ b/system/uptimed/slack-desc @@ -12,7 +12,7 @@ uptimed: Uptimed is an uptime daemon (logs your best uptimes). uptimed: uptimed: uptimed: -uptimed: Homepage: http://podgorny.cz/moin/Uptimed +uptimed: Homepage: https://github.com/rpodgorny/uptimed/ uptimed: uptimed: uptimed: diff --git a/system/uptimed/uptimed.SlackBuild b/system/uptimed/uptimed.SlackBuild index efb44086b6381..bc9384b204754 100644 --- a/system/uptimed/uptimed.SlackBuild +++ b/system/uptimed/uptimed.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh -e -# Graham Orange v0.17 2014-04-09 +# Graham Orange v0.18 2015-11-02 -# Copyright 2014 Graham Orange, USA +# Copyright 2015 Graham Orange, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,7 +22,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=uptimed -VERSION=${VERSION:-0.3.17} +VERSION=${VERSION:-0.4.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -34,7 +34,7 @@ if [ -z "$ARCH" ]; then esac fi -DOCS="AUTHORS COPYING CREDITS ChangeLog INSTALL* NEWS README TODO" +DOCS="AUTHORS COPYING CREDITS ChangeLog INSTALL* NEWS README* TODO" CWD=$(pwd) TMP=${TMP:-/tmp/SBo} @@ -61,15 +61,17 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +tar xvf $CWD/v$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ -o -perm 511 \) -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# Generate the configure file. +./autogen.sh CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ diff --git a/system/uptimed/uptimed.info b/system/uptimed/uptimed.info index fc67aa8016f6a..524a57cf10b9a 100644 --- a/system/uptimed/uptimed.info +++ b/system/uptimed/uptimed.info @@ -1,8 +1,8 @@ PRGNAM="uptimed" -VERSION="0.3.17" -HOMEPAGE="http://podgorny.cz/moin/Uptimed" -DOWNLOAD="http://podgorny.cz/uptimed/releases/uptimed-0.3.17.tar.bz2" -MD5SUM="528b62c33454b33537c3bf2366977bdb" +VERSION="0.4.0" +HOMEPAGE="https://github.com/rpodgorny/uptimed/" +DOWNLOAD="https://github.com/rpodgorny/uptimed/archive/v0.4.0.tar.gz" +MD5SUM="6c50b0671e7efed89efb4b956dc0f5e5" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |