mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-18 19:29:21 +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
|
||||
start)
|
||||
log_info_msg "Starting..."
|
||||
# if it is possible to use start_daemon
|
||||
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)
|
||||
log_info_msg "Stopping..."
|
||||
# if it is possible to use killproc
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user