On Thu, May 14, 2026 at 01:31:44AM +0200, Gioele Barabucci wrote:
> Source: radvd
> Version: 1:2.20-1+b1
> Usertags: pidof-without-procps
> 
> Dear maintainer(s) of radvd,
[...]
> ```
> path: radvd_1:2.20-1/debian/tests/daemons
> sysctl -w net.ipv6.conf.all.forwarding=1
> /etc/init.d/${DAEMON} restart > /dev/null 2>&1
> if pidof -x $DAEMON > /dev/null; then
>     echo "OK"
> else
> ```
[...]

Usually it's not a good idea to directly invoke init scripts, but in
this test-suite it might be ok (I don't know).
However if it is ok to directly invoke the init script, then that should
also be done to check the status. i.e.

```
/etc/init.d/${DAEMON} restart > /dev/null 2>&1
if /etc/init.d/${DAEMON} status > /dev/null 2>&1 ; then
```

That should eliminate the need for pidof.

Regards,
Andreas Henriksson

Reply via email to