Changeset 887af77


Ignore:
Timestamp:
03/25/2022 09:24:45 AM (2 years ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
3b20f59
Parents:
27d23b1
git-author:
Pierre Labastie <pierre.labastie@…> (03/22/2022 10:30:52 AM)
git-committer:
Pierre Labastie <pierre.labastie@…> (03/25/2022 09:24:45 AM)
Message:

Adapt template to new semantics of S/K symlinks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bootscripts/lfs/init.d/template

    r27d23b1 r887af77  
    3131   start)
    3232      log_info_msg "Starting..."
     33    # if it is possible to use start_daemon
    3334      start_daemon fully_qualified_path
     35    # if it is not possible to use start_daemon
     36    # (command to start the daemon is not simple enough)
     37      if ! pidofproc daemon_name_as_reported_by_ps >/dev/null; then
     38         command_to_start_the_service
     39      fi
     40      evaluate_retval
    3441      ;;
    3542
    3643   stop)
    3744      log_info_msg "Stopping..."
     45    # if it is possible to use killproc
    3846      killproc fully_qualified_path
     47    # if it is not possible to use killproc
     48    # (the daemon shoudn't be stopped by killing it)
     49      if pidofproc daemon_name_as_reported_by_ps >/dev/null; then
     50         command_to_stop_the_service
     51      fi
     52      evaluate_retval
    3953      ;;
    4054
Note: See TracChangeset for help on using the changeset viewer.