Florian Eckert bd8d34909d base-files: fix service_running check
The following command checks if a instance of a service is running.
/etc/init.d/<service> running <instance>

 In the variable `$@`, which is passed to the function
`service_running`, the first argument is always the `instance` which
should be checked. Because all other variables where removed from `$@`
with `shift`.

Before this change the first argument of `$@` was set to the `$service`
Variable. So the function does not work as expected. The `$service`
variable was always the instance which should be checked. This is not
what we want.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Reviewed-by: Sungbo Eo <mans0n@gorani.run>
2024-10-17 16:02:48 +08:00
..
2021-06-15 17:58:07 +08:00
2021-06-15 17:58:07 +08:00
2021-06-15 17:58:07 +08:00
2021-10-08 11:40:18 +08:00
2017-09-06 19:19:45 +08:00
2021-06-15 17:58:07 +08:00
2018-09-07 13:43:55 +08:00
2017-09-06 19:19:45 +08:00
2020-07-02 23:30:56 +08:00
2017-09-06 19:19:45 +08:00
2017-09-06 19:19:45 +08:00
2017-09-06 19:19:45 +08:00
2017-09-06 19:19:45 +08:00
2017-09-06 19:19:45 +08:00
2017-09-06 19:19:45 +08:00
2022-12-08 17:36:23 +08:00
2017-09-06 19:19:45 +08:00
2021-06-15 17:58:07 +08:00
2018-10-14 12:59:07 +08:00
2017-09-06 19:19:45 +08:00
2021-06-15 17:58:07 +08:00
2017-09-06 19:19:45 +08:00