Changeset 887af77


Ignore:
Timestamp:
03/25/2022 09:24:45 AM (6 months ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
11.2, 11.2-rc1, multilib, s6-init, trunk, xry111/arm64, xry111/clfs-ng, xry111/queue-11.3
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.