From 60c4ccff44fbe3922a75d91b6069cdeabd0909f7 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Mon, 14 Oct 2013 08:25:32 +0200 Subject: [PATCH] allow to set DAEMON_ARGS in /etc/default/sheepdog --- debian/pve-sheepdog.sheepdog.init.d | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/pve-sheepdog.sheepdog.init.d b/debian/pve-sheepdog.sheepdog.init.d index 2de8744..82c26ff 100644 --- a/debian/pve-sheepdog.sheepdog.init.d +++ b/debian/pve-sheepdog.sheepdog.init.d @@ -24,6 +24,7 @@ PIDFILE="/var/run/sheep.pid" ROOTDIR="/var/lib/sheepdog/" JOURNALSIZE="256" +DAEMON_ARGS="" # Read configuration variable file if it is present [ -r /etc/default/$NAME ] && . /etc/default/$NAME @@ -47,7 +48,7 @@ do_start() # 2 if daemon could not be started ulimit -n 1024000 #avoid check_host_env(395) WARN: Allowed open files 1024 too small, suggested 1024000 warning message ulimit -c unlimited #avoid check_host_env(404) Allowed core file size 0, suggested unlimited warning message - DAEMON_ARGS="--pidfile ${PIDFILE}" + DAEMON_ARGS="${DAEMON_ARGS} --pidfile ${PIDFILE}" DAEMON_ARGS="${DAEMON_ARGS} $ROOTDIR" # /path/to/meta-store,/path/to/disk1{,/path/to/disk2,...} -- 2.39.2