Changeset 1a64229


Ignore:
Timestamp:
03/26/2022 10:06:17 PM (2 years ago)
Author:
William Harrington <kb0iic@…>
Branches:
arm
Children:
b00d379
Parents:
5441724
git-author:
Pierre Labastie <pierre.labastie@…> (03/22/2022 10:30:52 AM)
git-committer:
William Harrington <kb0iic@…> (03/26/2022 10:06:17 PM)
Message:

Adapt template to new semantics of S/K symlinks

File:
1 edited

Legend:

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

    r5441724 r1a64229  
    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.