summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Franzmann2010-03-01 08:23:12 +0100
committerFlorian Franzmann2010-03-01 08:23:12 +0100
commita83130b53ebf17a2f3e1ce83da0c747c0d0b8696 (patch)
tree20ddbeaf27e82473f049bb7c445215942e466758
parent2c0e56fd6153888db6c4f6e42e0283ccf2d6e73e (diff)
utils/niced: new spell, a renice daemon
-rw-r--r--ChangeLog3
-rwxr-xr-xutils/niced/BUILD1
-rwxr-xr-xutils/niced/DETAILS15
-rw-r--r--utils/niced/HISTORY3
-rwxr-xr-xutils/niced/INSTALL1
-rwxr-xr-xutils/niced/PRE_BUILD1
-rwxr-xr-xutils/niced/init.d/niced15
-rw-r--r--utils/niced/init.d/niced.conf4
8 files changed, 43 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index caba5cdc5a..322b45e303 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2010-03-01 Florian Franzmann <siflfran@hawo.stw.uni-erlangen.de>
+ * utils/niced: new spell, a renice daemon
+
2010-02-26 Philippe "Puppet_Master" Caseiro <puppetmaster@sourcemage.org>
* e-17/enlil: new spell, EFL based Photo Manager library
* e-17/enki: new spell, EFL based Photo Manager
diff --git a/utils/niced/BUILD b/utils/niced/BUILD
new file mode 100755
index 0000000000..27ba77ddaf
--- /dev/null
+++ b/utils/niced/BUILD
@@ -0,0 +1 @@
+true
diff --git a/utils/niced/DETAILS b/utils/niced/DETAILS
new file mode 100755
index 0000000000..6c75a7531c
--- /dev/null
+++ b/utils/niced/DETAILS
@@ -0,0 +1,15 @@
+ SPELL=niced
+ VERSION=0.8a
+ SOURCE="${SPELL}-current.sh"
+ SOURCE_URL[0]=http://jrweare.googlepages.com/${SOURCE}
+ SOURCE_HASH=sha512:2e264c4be349e8e8b4a9d18f23999fa12f0dab59f1d17ae66a91ff714d6dbc1609da09181e8053a2207bd9e4c49ee994f1c1d0032d85cb829e5d2f2b0c92629c
+#SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-"
+ WEB_SITE="http://jrweare.googlepages.com/niced.html"
+ LICENSE[0]=GPL
+ ENTERED=20100301
+ SHORT="a daemon that changes the priorities of running processes based on process name, use and load"
+cat << EOF
+niced changes the priorities of running processes (using nice levels, realtime
+levels, and realtime scheduling policies) based on process name, use and
+load. It reruns upon load change, upon screensaver changes, or periodically.
+EOF
diff --git a/utils/niced/HISTORY b/utils/niced/HISTORY
new file mode 100644
index 0000000000..248704b96d
--- /dev/null
+++ b/utils/niced/HISTORY
@@ -0,0 +1,3 @@
+2010-03-01 Florian Franzmann <siflfran@hawo.stw.uni-erlangen.de>
+ * BUILD, DETAILS, INSTALL, PRE_BUILD, init.d/niced{,.conf}: spell created
+
diff --git a/utils/niced/INSTALL b/utils/niced/INSTALL
new file mode 100755
index 0000000000..98d4a63866
--- /dev/null
+++ b/utils/niced/INSTALL
@@ -0,0 +1 @@
+install -m 700 ${SOURCE_CACHE}/niced-current.sh ${INSTALL_ROOT}/usr/sbin/niced
diff --git a/utils/niced/PRE_BUILD b/utils/niced/PRE_BUILD
new file mode 100755
index 0000000000..27ba77ddaf
--- /dev/null
+++ b/utils/niced/PRE_BUILD
@@ -0,0 +1 @@
+true
diff --git a/utils/niced/init.d/niced b/utils/niced/init.d/niced
new file mode 100755
index 0000000000..b200bf0215
--- /dev/null
+++ b/utils/niced/init.d/niced
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+. /etc/sysconfig/niced
+
+PROGRAM=/usr/sbin/niced
+RUNLEVEL=S
+ARGS="$CONFIG"
+NEEDS="+local_fs"
+
+. /etc/init.d/smgl_init
+
+start()
+{
+ $PROGRAM $ARGS &
+}
diff --git a/utils/niced/init.d/niced.conf b/utils/niced/init.d/niced.conf
new file mode 100644
index 0000000000..75d9a59fa0
--- /dev/null
+++ b/utils/niced/init.d/niced.conf
@@ -0,0 +1,4 @@
+# This is the niced config file.
+#
+# Set the CONFIG variable to pass startup parameters needed by your nice daemon.
+CONFIG="-d"