Command: ExecStart=/bin/sh -c '/usr/sbin/sheep --pidfile /var/run/sheep.pid $(if [ -z "$SHEEP_OPTS" ]; then echo "--cluster local --log dst=syslog --upgrade /var/lib/sheepdog"; else echo $SHEEP_OPTS; fi)'
will work. But may be trust to sheepdog defaults and set: ExecStart=/usr/sbin/sheep --pidfile /var/run/sheep.pid $SHEEP_OPTS This will be more pretty. What do you think? 2014-11-27 21:36 GMT+10:00 Vasiliy Tolstov <[email protected]>: > 2014-11-27 2:44 GMT+03:00 Vladislav Gorbunov <[email protected]>: > > We can include default file like /etc/default/sheepdog in rpm package > with > > content: > > SHEEP_OPTS="--log std=syslog --upgrade --cluster local /var/lib/sheepdog" > > > This included file only for debian. To get it to gentoo or fedora you > need to install proper file. I want not include in sheepdog any files > and use safe defaults in service. Before user not created it by hand > or package maintainer not add it to pkg. > > -- > Vasiliy Tolstov, > e-mail: [email protected] > jabber: [email protected] >
-- sheepdog mailing list [email protected] http://lists.wpkg.org/mailman/listinfo/sheepdog
