diff --git a/docs/init.d/goauthing b/docs/init.d/goauthing index 9691924..3ac0302 100644 --- a/docs/init.d/goauthing +++ b/docs/init.d/goauthing @@ -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() { diff --git a/docs/init.d/goauthing@ b/docs/init.d/goauthing@ index 5e990fc..8842fa5 100644 --- a/docs/init.d/goauthing@ +++ b/docs/init.d/goauthing@ @@ -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" diff --git a/docs/systemd/system/goauthing.service b/docs/systemd/system/goauthing.service index 194df3b..2bb560d 100644 --- a/docs/systemd/system/goauthing.service +++ b/docs/systemd/system/goauthing.service @@ -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 diff --git a/docs/systemd/system/goauthing6.service b/docs/systemd/system/goauthing6.service index ddfeeac..a379d0b 100644 --- a/docs/systemd/system/goauthing6.service +++ b/docs/systemd/system/goauthing6.service @@ -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 diff --git a/docs/systemd/system/goauthing6@.service b/docs/systemd/system/goauthing6@.service index a98a7d2..e7b5676 100644 --- a/docs/systemd/system/goauthing6@.service +++ b/docs/systemd/system/goauthing6@.service @@ -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 diff --git a/docs/systemd/system/goauthing@.service b/docs/systemd/system/goauthing@.service index c1bbafd..017fac4 100644 --- a/docs/systemd/system/goauthing@.service +++ b/docs/systemd/system/goauthing@.service @@ -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 diff --git a/docs/systemd/user/goauthing.service b/docs/systemd/user/goauthing.service index db0edb6..7f2c388 100644 --- a/docs/systemd/user/goauthing.service +++ b/docs/systemd/user/goauthing.service @@ -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 diff --git a/docs/systemd/user/goauthing6.service b/docs/systemd/user/goauthing6.service index 7c28b62..24618fe 100644 --- a/docs/systemd/user/goauthing6.service +++ b/docs/systemd/user/goauthing6.service @@ -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