mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-19 03:39:20 +01:00
Adapt template to new semantics of S/K symlinks
This commit is contained in:
parent
27d23b1d41
commit
887af775a5
@ -30,12 +30,26 @@
|
|||||||
case "${1}" in
|
case "${1}" in
|
||||||
start)
|
start)
|
||||||
log_info_msg "Starting..."
|
log_info_msg "Starting..."
|
||||||
|
# if it is possible to use start_daemon
|
||||||
start_daemon fully_qualified_path
|
start_daemon fully_qualified_path
|
||||||
|
# if it is not possible to use start_daemon
|
||||||
|
# (command to start the daemon is not simple enough)
|
||||||
|
if ! pidofproc daemon_name_as_reported_by_ps >/dev/null; then
|
||||||
|
command_to_start_the_service
|
||||||
|
fi
|
||||||
|
evaluate_retval
|
||||||
;;
|
;;
|
||||||
|
|
||||||
stop)
|
stop)
|
||||||
log_info_msg "Stopping..."
|
log_info_msg "Stopping..."
|
||||||
|
# if it is possible to use killproc
|
||||||
killproc fully_qualified_path
|
killproc fully_qualified_path
|
||||||
|
# if it is not possible to use killproc
|
||||||
|
# (the daemon shoudn't be stopped by killing it)
|
||||||
|
if pidofproc daemon_name_as_reported_by_ps >/dev/null; then
|
||||||
|
command_to_stop_the_service
|
||||||
|
fi
|
||||||
|
evaluate_retval
|
||||||
;;
|
;;
|
||||||
|
|
||||||
restart)
|
restart)
|
||||||
|
Loading…
Reference in New Issue
Block a user