-
Notifications
You must be signed in to change notification settings - Fork 76
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
base: openwrt
Are you sure you want to change the base?
Conversation
Entware style changes
Thank you! |
@@ -1,17 +1,15 @@ | |||
#!/bin/sh | |||
|
|||
# Pass your args here | |||
ARGS="" | |||
ARGS="--daemonize" |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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.
Entware style changes