From 097d58e16c503d0e6fd9ebe9cd84d257387c8284 Mon Sep 17 00:00:00 2001 From: lost+skunk Date: Sat, 13 Jul 2024 22:12:50 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=B5=D1=80=D0=B2=D0=B8=D1=81=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20=D0=BE=D0=BF=D0=B5=D0=BD=D1=80=D1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/config.go | 7 ++++++- skunkyart.example.openrc | 11 +++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100755 skunkyart.example.openrc diff --git a/app/config.go b/app/config.go index 96aea40..c848b9c 100644 --- a/app/config.go +++ b/app/config.go @@ -40,9 +40,14 @@ var CFG = config{ func ExecuteConfig() { go func() { + defer func() { + if r := recover(); r != nil { + recover() + } + }() for { Templates["instances.json"] = string(Download("https://git.macaw.me/skunky/SkunkyArt/raw/branch/master/instances.json").Body) - time.Sleep(1 * time.Hour) + time.Sleep(1 * time.Second) } }() diff --git a/skunkyart.example.openrc b/skunkyart.example.openrc new file mode 100755 index 0000000..aba74ce --- /dev/null +++ b/skunkyart.example.openrc @@ -0,0 +1,11 @@ +#!/sbin/openrc-run +name="SkunkyArt" +description="Privacy frontend for deviantart.com" +supervisor=supervise-daemon +command= +command_args="-c " +directory="" + +depend() { + need net +} \ No newline at end of file