Bad test for $START_DARKSTAT in /etc/init.d/darkstat
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
darkstat (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
---
# apt show darkstat
Package: darkstat
Version: 3.0.719-1
Priority: optional
Section: universe/net
Origin: Ubuntu
Maintainer: Ubuntu Developers <email address hidden>
Original-
Bugs: https:/
Installed-Size: 169 kB
Depends: libc6 (>= 2.17), libpcap0.8 (>= 0.9.8), zlib1g (>= 1:1.1.4), debconf (>= 0.5) | debconf-2.0, lsb-base (>= 3.0-6)
Homepage: https:/
Download-Size: 59.7 kB
APT-Manual-
APT-Sources: http://
---
Darkstat does not start with any of the following commands:
/etc/init.
service darkstat start
systemctl start darkstat
In /etc/darkstat/
---
START_DARKSTAT=yes
---
but in /etc/init.
---
test "$START_DARKSTAT" = "yes" || exit 0
---
which looks like it would just exit when START_DARKSTAT=yes.
Workaround:
In /etc/darkstat/
---
START_DARKSTAT=
---
Shouldn't:
test "$START_DARKSTAT" = "yes" || exit 0
Mean "variable has to equal yes or else early exit" ?
$ test "$X" = "yes" || echo early exit
early exit
$ export X=yes; test "$X" = "yes" || echo early exit
$
What am I missing?