-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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-daemon
it 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
/ssserver
daemon instance is allowed.With
ssserver
you can work around this by runing multiple servers in one process (shadowsocks config allows it).But with
sslocal
this is, alas, impossible.