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

Workaround the delay between auth command return success and online command can access Internet, by adding sleep 3 #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/init.d/goauthing
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ start_pre() {
"$PROG" -c "$CONF" -D deauth
"$PROG" -c "$CONF" -D auth
"$PROG" -c "$CONF" -D login
sleep 3
}

start_service() {
Expand Down
1 change: 1 addition & 0 deletions docs/init.d/goauthing@
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ start_instance() {
"$PROG" $args deauth
"$PROG" $args auth
"$PROG" $args login
sleep 3

procd_open_instance
procd_set_param command "$PROG"
Expand Down
1 change: 1 addition & 0 deletions docs/systemd/system/goauthing.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ StartLimitIntervalSec=0
ExecStartPre=-/usr/local/bin/auth-thu -c /etc/goauthing.json -D deauth
ExecStartPre=-/usr/local/bin/auth-thu -c /etc/goauthing.json -D auth
ExecStartPre=-/usr/local/bin/auth-thu -c /etc/goauthing.json -D login
ExecStartPre=-sleep 3
ExecStart=/usr/local/bin/auth-thu -c /etc/goauthing.json -D online
User=nobody
Restart=always
Expand Down
1 change: 1 addition & 0 deletions docs/systemd/system/goauthing6.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ StartLimitIntervalSec=0
[Service]
ExecStartPre=-/usr/local/bin/auth-thu -c /etc/goauthing.json -D deauth -6
ExecStartPre=-/usr/local/bin/auth-thu -c /etc/goauthing.json -D auth -6
ExecStartPre=-sleep 3
ExecStart=/usr/local/bin/auth-thu -c /etc/goauthing.json -D online -6
User=nobody
Restart=always
Expand Down
1 change: 1 addition & 0 deletions docs/systemd/system/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ StartLimitIntervalSec=0
# default config is in ~/.auth-thu
ExecStartPre=-/usr/local/bin/auth-thu -D deauth -6
ExecStartPre=-/usr/local/bin/auth-thu -D auth -6
ExecStartPre=-sleep 3
ExecStart=/usr/local/bin/auth-thu -D online -6
User=%i
Restart=always
Expand Down
1 change: 1 addition & 0 deletions docs/systemd/system/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ StartLimitIntervalSec=0
ExecStartPre=-/usr/local/bin/auth-thu -D deauth
ExecStartPre=-/usr/local/bin/auth-thu -D auth
ExecStartPre=-/usr/local/bin/auth-thu -D login
ExecStartPre=-sleep 3
ExecStart=/usr/local/bin/auth-thu -D online
User=%i
Restart=always
Expand Down
1 change: 1 addition & 0 deletions docs/systemd/user/goauthing.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ StartLimitIntervalSec = 0
ExecStartPre = -/usr/local/bin/auth-thu -D deauth
ExecStartPre = -/usr/local/bin/auth-thu -D auth
ExecStartPre = -/usr/local/bin/auth-thu -D login
ExecStartPre = -sleep 3
ExecStart = /usr/local/bin/auth-thu -D online
Restart = always
RestartSec = 5
Expand Down
1 change: 1 addition & 0 deletions docs/systemd/user/goauthing6.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ StartLimitIntervalSec = 0
[Service]
ExecStartPre = -/usr/local/bin/auth-thu -D deauth -6
ExecStartPre = -/usr/local/bin/auth-thu -D auth -6
ExecStartPre = -sleep 3
ExecStart = /usr/local/bin/auth-thu -D online -6
Restart = always
RestartSec = 5
Expand Down
Loading