[sheepdog] [PATCH v1] fix systemd service to run sheep in foreground and with defaults

Liu Yuan namei.unix at gmail.com
Wed Apr 8 08:22:52 CEST 2015


On Wed, Apr 08, 2015 at 09:26:05AM +0300, Vasiliy Tolstov wrote:
> sheepdog now able to run in foreground, so use this in systemd service,
> also remove running shell script to get defaults, because it provided
> in service file now.
> 
> Signed-off-by: Vasiliy Tolstov <v.tolstov at selfip.ru>
> ---
>  script/sheepdog.service.in | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/script/sheepdog.service.in b/script/sheepdog.service.in
> index ac4f955..2efeed9 100644
> --- a/script/sheepdog.service.in
> +++ b/script/sheepdog.service.in
> @@ -4,15 +4,15 @@ After=network.target
>  Wants=syslog.target
>  
>  [Service]
> +Environment="DAEMON_ARGS=--cluster local --log dst=syslog -f --upgrade" "SHEEPDOG_PATH=@LOCALSTATEDIR@/lib/sheepdog"

I am no guru of systemd but I noticed '--cluster local'. Does it mean we run
sheep by local driver for default setup? Local driver is basically for testing
for a single node cluster, in which sense, it would be bad idea to make local
driver as default, because most people want to run multi-node sheepdog cluster.

Thanks,
Yuan



More information about the sheepdog mailing list