Added configs for snap daemons - #1204
Conversation
|
shadowsocks-rust/src/config.rs Lines 59 to 66 in 0c4f9da
|
|
I don't think that having one config file for both |
|
Why would you run On the other hand, add these |
|
Added, please review |
|
Also, I would like to be able to run multiple instances of Do you know any workaround? |
|
I don't know. I run my own services with handwriting systemd service files. |
|
Me too. But when running snaps with handwritten systemd service, |
|
Hmm, shouldn't we also support |
|
It is used if let config_files = vec![config_file, "config.json"]; |
Currently if you run
snap start shadowsocks-rust.ssserver-daemonit will fail because of the missing config.This patch adds paths to config files. All a user needs to do is to add desired local/server configs to $SNAP_COMMON directory.
Still there's a problem, that only one
sslocal/ssserverdaemon instance is allowed.With
ssserveryou can work around this by runing multiple servers in one process (shadowsocks config allows it).But with
sslocalthis is, alas, impossible.