This was written against the package 3.0.0-4ubuntu1, but should be
applicable to any recent Debian init.d script. It adds a check for
/etc/backuppc/nice, and runs the server at the level contained in
there, if it finds one.

-- 
Nathaniel Eliot
http://t9productions.com/
--- /etc/init.d/backuppc	2008-08-31 21:32:34.000000000 -0500
+++ /etc/init.d/backuppc~	2008-08-31 21:11:45.000000000 -0500
@@ -35,11 +35,6 @@
     chown backuppc:backuppc /var/run/backuppc
 fi
 
-NICE=0 
-if [ -e /etc/backuppc/nice ]; then
-    NICE=`cat /etc/backuppc/nice`
-fi
-
 # Check for incompatible old config files
 check_old_config()
 {
@@ -61,7 +56,7 @@
     log_begin_msg "Starting $NAME..."
     check_old_config
     start-stop-daemon --start --pidfile /var/run/backuppc/BackupPC.pid \
-			    -c $USER -N $NICE --exec $BINDIR/$DAEMON -- -d 
+			    -c $USER --exec $BINDIR/$DAEMON -- -d
     log_end_msg $?
     ;;
   stop)
@@ -76,7 +71,7 @@
 			    --oknodo --retry 30
     check_old_config
     start-stop-daemon --start --pidfile /var/run/backuppc/BackupPC.pid \
-			    -c $USER -N $NICE --exec $BINDIR/$DAEMON -- -d
+			    -c $USER --exec $BINDIR/$DAEMON -- -d
     log_end_msg $?
     ;;
   reload|force-reload)
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
BackupPC-devel mailing list
BackupPC-devel@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-devel
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to