Commit 097d58e16c
Unsigned
Layout: unified · split
app/config.go +6 −1
| @@ -40,9 +40,14 @@ var CFG = config{ | |||
| 40 | 40 | ||
| 41 | func ExecuteConfig() { | 41 | func ExecuteConfig() { |
| 42 | go func() { | 42 | go func() { |
| 43 | defer func() { | ||
| 44 | if r := recover(); r != nil { | ||
| 45 | recover() | ||
| 46 | } | ||
| 47 | }() | ||
| 43 | for { | 48 | for { |
| 44 | Templates["instances.json"] = string(Download("https://git.macaw.me/skunky/SkunkyArt/raw/branch/master/instances.json").Body) | 49 | 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) |
| 46 | } | 51 | } |
| 47 | }() | 52 | }() |
| 48 | 53 | ||
skunkyart.example.openrc added +11
| @@ -0,0 +1,11 @@ | |||
| 1 | #!/sbin/openrc-run | ||
| 2 | name="SkunkyArt" | ||
| 3 | description="Privacy frontend for deviantart.com" | ||
| 4 | supervisor=supervise-daemon | ||
| 5 | command=<path_to_skunkyart> | ||
| 6 | command_args="-c <path_to_config>" | ||
| 7 | directory="<path_to_dir_with_skunkyart>" | ||
| 8 | |||
| 9 | depend() { | ||
| 10 | need net | ||
| 11 | }\ No newline at end of file | ||