Commit 097d58e16c

097d58e16c503d0e6fd9ebe9cd84d257387c8284

parent: cd86606f7a

Unsigned

lost+skunk <skunky@ebloid.ru> · 2024-07-13 19:12 UTC

Сервис для опенрц

Layout: unified · split

app/config.go +6 −1
@@ -40,9 +40,14 @@ var CFG = config{
4040
4141func ExecuteConfig() {
4242 go func() {
43 defer func() {
44 if r := recover(); r != nil {
45 recover()
46 }
47 }()
4348 for {
4449 Templates["instances.json"] = string(Download("https://git.macaw.me/skunky/SkunkyArt/raw/branch/master/instances.json").Body)
45 time.Sleep(1 * time.Hour)
50 time.Sleep(1 * time.Second)
4651 }
4752 }()
4853
skunkyart.example.openrc added +11
@@ -0,0 +1,11 @@
1#!/sbin/openrc-run
2name="SkunkyArt"
3description="Privacy frontend for deviantart.com"
4supervisor=supervise-daemon
5command=<path_to_skunkyart>
6command_args="-c <path_to_config>"
7directory="<path_to_dir_with_skunkyart>"
8
9depend() {
10 need net
11}
\ No newline at end of file