Skip to main content
Topic: syncthing-runit pkg (Read 20 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

syncthing-runit pkg

Hi,

The `syncthing-runit` package (from 2014) does not work for me:

- the service does not get up
    - `sv start syncthing` just replies with: "timeout: down: syncthing: 0s, normally up, want up"
- the `log/run` contains a `logger` and not `svlogd`
    - there is no logs at `/var/log/syncthing` to check why this is happening

I can make it run by doing `su "$USER" -c syncthing` but I guess this is "bad".

So my questions are:

- does this happens with anyone else?
- what is the difference between `chpst -u "$USER"` and `su "$USER"`?
- how do I get the logs from this service without altering anything?

For the record:

the `run` original content is the following:

```sh
#!/bin/sh
[ -r conf ] && . ./conf

exec 2>&1
exec chpst -u "$USER" syncthing -logflags 0
```

the `log/run`original content is the following:

```sh
#!/bin/sh
exec logger -t syncthing
```

Thank you