Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update S51youtubeUnblock #208

Open
wants to merge 1 commit into
base: openwrt
Choose a base branch
from
Open

Update S51youtubeUnblock #208

wants to merge 1 commit into from

Conversation

HiHat
Copy link

@HiHat HiHat commented Dec 31, 2024

Entware style changes

Entware style changes
@Waujito
Copy link
Owner

Waujito commented Jan 2, 2025

Thank you!
Yeah, I completely forgot about daemonize flag and Entware. I will test it for a bit and merge.

@Waujito Waujito self-requested a review January 3, 2025 22:09
@@ -1,17 +1,15 @@
#!/bin/sh

# Pass your args here
ARGS=""
ARGS="--daemonize"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is better to write --daemonize near the process

$PROCS $ARGS >/dev/null 2>&1 &

# $PROCS $ARGS >/dev/null 2>&1 &
. /opt/etc/init.d/rc.func start $CALLER
Copy link
Owner

@Waujito Waujito Jan 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't believe in this rc.func abstraction. I want to control everything here, inside the script. https://github.com/Entware/rtndev/blob/master/entware-opt/files/rc.func

So, keep the old runner but with --daemonize. Like $PROCS $ARGS --daemonize. Also with daemonize you don't have to /dev/null early output.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's up to you!

firewall_start_v4
firewall_start_v6
system_config

echo -e "$ansi_white Started $PROCS $ansi_std"
# echo -e "$ansi_white Started $PROCS $ansi_std"
Copy link
Owner

@Waujito Waujito Jan 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without rc.func this logger is ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants