Сервис для опенрц
This commit is contained in:
parent
cd86606f7a
commit
097d58e16c
@ -40,9 +40,14 @@ var CFG = config{
|
|||||||
|
|
||||||
func ExecuteConfig() {
|
func ExecuteConfig() {
|
||||||
go func() {
|
go func() {
|
||||||
|
defer func() {
|
||||||
|
if r := recover(); r != nil {
|
||||||
|
recover()
|
||||||
|
}
|
||||||
|
}()
|
||||||
for {
|
for {
|
||||||
Templates["instances.json"] = string(Download("https://git.macaw.me/skunky/SkunkyArt/raw/branch/master/instances.json").Body)
|
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)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
11
skunkyart.example.openrc
Executable file
11
skunkyart.example.openrc
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/sbin/openrc-run
|
||||||
|
name="SkunkyArt"
|
||||||
|
description="Privacy frontend for deviantart.com"
|
||||||
|
supervisor=supervise-daemon
|
||||||
|
command=<path_to_skunkyart>
|
||||||
|
command_args="-c <path_to_config>"
|
||||||
|
directory="<path_to_dir_with_skunkyart>"
|
||||||
|
|
||||||
|
depend() {
|
||||||
|
need net
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user