Package: backuppc
Version: 3.3.0-2
Severity: wishlist
Tags: patch
Add a parameter 'IONICE' to '/etc/default/backuppc' to
be able to start the daemon with an I/O scheduling priority
other than default (i.e. 'idle' instead of 'none/best effort'.
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 3.16.0-4-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) (ignored: LC_ALL
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages backuppc depends on:
ii adduser 3.113+nmu3
ii apache2 [httpd] 2.4.10-8
ii apache2-mpm-prefork [httpd] 2.4.10-8
ii apache2-utils 2.4.10-8
ii bzip2 1.0.6-7+b1
ii debconf [debconf-2.0] 1.5.54
ii dpkg 1.17.21
ii exim4 4.84-3
ii exim4-daemon-light [mail-transport-agent] 4.84-3
ii iputils-ping 3:20121221-5+b2
ii libarchive-zip-perl 1.39-1
ii libc6 2.19-13
pn libcompress-zlib-perl <none>
ii libtime-modules-perl 2013.1113-2
ii libwww-perl 6.08-1
ii perl [libdigest-md5-perl] 5.20.1-3
ii samba-common-bin 2:4.1.13+dfsg-2
ii smbclient 2:4.1.13+dfsg-2
ii tar 1.27.1-2+b1
ii ucf 3.0030
Versions of packages backuppc recommends:
ii libfile-rsyncp-perl 0.70-1.1+b1
ii libio-dirent-perl 0.05-1+b2
ii openssh-client [ssh-client] 1:6.7p1-3
ii rrdtool 1.4.8-1.2
ii rsync 3.1.1-2+b1
Versions of packages backuppc suggests:
ii chromium [www-browser] 38.0.2125.101-3
ii iceweasel [www-browser] 31.2.0esr-3
ii lynx-cur [www-browser] 2.8.9dev1-2+b1
pn par2 <none>
ii w3m [www-browser] 0.5.3-19
-- Configuration Files:
/etc/backuppc/config.pl 624ebde9d0be0345b07da0e6e9810739 [Errno 2] No such file
or directory: u'/etc/backuppc/config.pl 624ebde9d0be0345b07da0e6e9810739'
/etc/default/backuppc changed:
NICE=10
IONICE=idle
/etc/init.d/backuppc changed:
set -e
BINDIR=/usr/share/backuppc/bin
DATADIR=/var/lib/backuppc
USER=backuppc
NICE=0
IONICE=best-effort
NAME=backuppc
DAEMON=BackupPC
test -f /etc/default/backuppc && . /etc/default/backuppc
test -x $BINDIR/$DAEMON || exit 0
. /lib/lsb/init-functions
[ -r /etc/default/rcS ] && . /etc/default/rcS
if [ ! -d /var/run/backuppc ]; then
mkdir /var/run/backuppc
chown backuppc:backuppc /var/run/backuppc
fi
check_old_config()
{
BAD=0
CONF=/etc/backuppc/config.pl
grep -q IncrLevel $CONF || BAD=1
if [ "$BAD" = "1" ]; then
echo "BackupPC cannot be started because important parameters are
missing from config.pl."
echo "If you just upgraded BackupPC, please update
/etc/backuppc/config.pl."
exit 1
fi
}
case "$1" in
start)
log_begin_msg "Starting $NAME..."
check_old_config
start-stop-daemon --start --pidfile /var/run/backuppc/BackupPC.pid \
--nicelevel $NICE --iosched $IONICE -c $USER --exec
$BINDIR/$DAEMON -- -d
log_end_msg $?
;;
stop)
log_begin_msg "Stopping $NAME..."
start-stop-daemon --stop --pidfile /var/run/backuppc/BackupPC.pid -u $USER \
--oknodo --retry 30
log_end_msg $?
;;
restart)
log_begin_msg "Restarting $NAME..."
start-stop-daemon --stop --pidfile /var/run/backuppc/BackupPC.pid -u $USER \
--oknodo --retry 30
check_old_config
start-stop-daemon --start --pidfile /var/run/backuppc/BackupPC.pid \
--nicelevel $NICE --iosched $IONICE -c $USER --exec
$BINDIR/$DAEMON -- -d
log_end_msg $?
;;
reload|force-reload)
log_begin_msg "Reloading $NAME configuration files..."
start-stop-daemon --stop --pidfile /var/run/backuppc/BackupPC.pid \
--signal 1
log_end_msg $?
;;
status)
status_of_proc "$BINDIR/$DAEMON" "$NAME" && exit 0 || exit $?
;;
*)
log_success_msg "Usage: /etc/init.d/$NAME
{start|stop|restart|reload|status}"
exit 1
;;
esac
exit 0
-- debconf information:
* backuppc/reconfigure-webserver:
backuppc/restart-webserver: true
* backuppc/configuration-note:
--- backuppc.default 2014-12-05 09:57:50.820921909 -0500
+++ backuppc.default.new 2014-12-05 09:57:50.820921909 -0500
@@ -1,2 +1,4 @@
# Nice BackupPC daemon value
NICE=0
+# IO Scheduling BackupPC daemon
+IONICE=idle
--- README.Debian 2014-12-05 10:43:15.906631690 -0500
+++ README.Debian.new 2014-12-05 10:44:23.078523062 -0500
@@ -111,7 +111,8 @@
You can change the nice value by adding a line like 'NICE=10' to
/etc/default/backuppc
-
+You can change the ionice value by adding a line like 'IONICE=idle'
+to /etc/default/backuppc