|
Lines 284-290
_service_control()
Link Here
|
| 284 |
{ |
284 |
{ |
| 285 |
# Prefer systemctl over SysV if it is available relying |
285 |
# Prefer systemctl over SysV if it is available relying |
| 286 |
# on its systemd-sysv-install script for SysV services. |
286 |
# on its systemd-sysv-install script for SysV services. |
| 287 |
if sd_avail; then |
287 |
if sd_avail && sd_sysv_avail; then |
| 288 |
sd_service_control "$1" "$2" |
288 |
sd_service_control "$1" "$2" |
| 289 |
elif sysv_service_script_exists "$1"; then |
289 |
elif sysv_service_script_exists "$1"; then |
| 290 |
sysv_service_control "$1" "$2" |
290 |
sysv_service_control "$1" "$2" |
| 291 |
- |
|
|