Public bug reported:

Binary package hint: initscripts

/etc/init.d/hostname.sh has an exit status of 1 even when all is well.

The final line of hostname.sh's do_start() function is:

  [ "$VERBOSE" != no ] && log_action_end_msg $ES

If VERBOSE is set to no, this results in $? being 1. Nothing else
happens in the script to override that, so the script's overall exit
status is 1.

One solution would be for hostname.sh to end (overall) with "exit 0"
like many other init scripts.

** Affects: sysvinit (Ubuntu)
     Importance: Undecided
         Status: New

-- 
hostname.sh exit status 1
https://bugs.launchpad.net/bugs/220830
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to