Skip to content

Commit

Permalink
Remove initlog
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Gladkov <[email protected]>
  • Loading branch information
legionus committed Apr 15, 2024
1 parent b5964cb commit 553592a
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions data/etc/rc.d/init.d/functions
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ CONSOLETYPE=$(absolute consoletype) && [ "$($CONSOLETYPE)" = serial ] &&
[ "$BOOTUP" != color ] ||
SourceIfNotEmpty /etc/init.d/outformat

INITLOG=initlog
INITLOG_ARGS=
[ "${BOOTUP-}" = verbose ] || INITLOG_ARGS="-q"

[ "${LOGLEVEL:--1}" -ge 0 ] 2>/dev/null ||
LOGLEVEL=1

Expand Down Expand Up @@ -156,7 +152,7 @@ start_daemon()
[ -z "$ANNOUNCE" ] || msg_starting "$DISPNAME"

# Actually start the daemon.
$INITLOG $INITLOG_ARGS -n "service: $BASENAME" -c "start-stop-daemon $FLAGS -- $*"
start-stop-daemon $FLAGS -- "$@"
STATUS=$?

if [ $STATUS = 0 ]; then
Expand Down Expand Up @@ -444,7 +440,6 @@ echo_passed()
# Log that something succeeded
success()
{
$INITLOG $INITLOG_ARGS -n "service: $0" -s "$1" -e 1
[ "${RDLOG-}" != 'console' ] ||
return 0
echo_success
Expand All @@ -456,7 +451,6 @@ success()
failure()
{
local rc=$?
$INITLOG $INITLOG_ARGS -n "service: $0" -s "$1" -e 2
[ "${RDLOG-}" != 'console' ] ||
return $rc
echo_failure
Expand All @@ -468,7 +462,6 @@ failure()
passed()
{
local rc=$?
$INITLOG $INITLOG_ARGS -n "service: $0" -s "$1" -e 1
[ "${RDLOG-}" != 'console' ] ||
return $rc
echo_passed
Expand All @@ -483,7 +476,7 @@ action()
STRING="$1"
shift
[ "${RDLOG-}" = 'console' ] || echo_msg "$STRING"
$INITLOG $INITLOG_ARGS -c "$*"
"$@"
rc=$?
[ $rc -eq 0 ] && success "$STRING" || failure "$STRING"
return $rc
Expand Down

0 comments on commit 553592a

Please sign in to comment.