Changeset 887af77 for bootscripts/lfs/init.d/template
- Timestamp:
- 03/25/2022 09:24:45 AM (2 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bootscripts/lfs/init.d/template
r27d23b1 r887af77 31 31 start) 32 32 log_info_msg "Starting..." 33 # if it is possible to use start_daemon 33 34 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 34 41 ;; 35 42 36 43 stop) 37 44 log_info_msg "Stopping..." 45 # if it is possible to use killproc 38 46 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 39 53 ;; 40 54
Note:
See TracChangeset
for help on using the changeset viewer.