Is there a guide on how to start and configure the config.json when installed via snap?
cizz0r opened this issue · 3 comments
I just can't get it to working using this .service file I created.
[Unit]
Description=Shadowsocks-Libev Custom Server Service for %I
Documentation=manss-server(1)
After=network-online.target
[Service]
Type=simple
ExecStart=/usr/bin/snap run shadowsocks-rust.ss-server -c /var/snap/shadowsocks-rust/common/etc/shadowsocks-rust/config.json
[Install]
WantedBy=multi-user.target
Not sure. If you finally find the answer, please help to improve the README.md.
shadowsocks-rust/snap/snapcraft.yaml
Lines 39 to 42 in 08f350f
As you can see in the snapcraft.yaml
, it passthroughs $SNAP_COMMON/etc/shadowsocks-rust
to /etc/shadowsocks-rust
.
https://snapcraft.io/docs/environment-variables
According to document, $SNAP_COMMON
is: SNAP_COMMON=/var/snap/<snap>/common
, which in this case, /var/snap/shadowsocks-rust/common
.
So you could put the configuration file to /var/snap/shadowsocks-rust/common/etc/shadowsocks-rust/config.json
.
Here is the default search path:
shadowsocks-rust/src/config.rs
Lines 16 to 69 in 08f350f