Wrong code [ ! -e $CERTFILE ] && exit 0

Bug #1103180 reported by Johan on 2013-01-22
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
boxbackup (Ubuntu)
Undecided
Unassigned

Bug Description

/etc/init.d/boxbackup-server contains [ ! -e $CERTFILE ] && exit 0

It should contain something which results a correct response in accordance with other packages to return a correct status response on stdout when

# /etc/init.d/boxbackup-server status
is executed, even in the case that no $CERTFILE file exists.

Johan (iampure) wrote :

According to LSB:

"If the status action is requested, the init script will return the following exit status codes.

0 program is running or service is OK"

This shows a violation of the LSB. LSB behaviour can be restored with respect to this point by converting the 0 into a 1.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers