[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: lsb-base

[Marco d'Itri]
> I am considering switching the init scripts of my packages to
> lsb-base (which means that it will have to be promoted to important
> priority, at least).
> If anybody has objections please voice them now.

I already did this for discover1, but did this in a way to make it use
lsb-base only if it is installed.

I used this code to make lsb-base optional, and used the lsb functions
for output:

  if [ -f /lib/lsb/init-functions ]; then
    . /lib/lsb/init-functions
    log_begin_msg()   { echo "$@"; }
    log_success_msg() { echo "$@"; }
    log_warning_msg() { echo "$@"; }

Perhaps an idea for you too?

Reply to: