diff options
author | Aaron LI <aly@aaronly.me> | 2019-09-19 19:19:36 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2019-09-19 19:19:36 +0800 |
commit | 9845ee026fb7515283b42d47fb28cb9693360598 (patch) | |
tree | 137c3e7a819d14f384215f201013eb0fdc1680af | |
parent | 00faf392710f0b029083c64fde507300eed94f6f (diff) | |
download | ansible-dfly-vps-9845ee026fb7515283b42d47fb28cb9693360598.tar.bz2 |
shadowsocks: Minor tweaks
-rw-r--r-- | roles/shadowsocks/files/shadowsocks | 3 | ||||
-rw-r--r-- | roles/shadowsocks/tasks/main.yml | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/roles/shadowsocks/files/shadowsocks b/roles/shadowsocks/files/shadowsocks index 4dcf706..2c5c970 100644 --- a/roles/shadowsocks/files/shadowsocks +++ b/roles/shadowsocks/files/shadowsocks @@ -1,7 +1,5 @@ #!/bin/sh # -# $FreeBSD$ -# # Aaron LI # 2018-06-24 # @@ -32,6 +30,7 @@ # # For each profile you can then define different options (except for # shadowsocks_enable) using the syntax shadowsocks_<profile>_<option> +# . /etc/rc.subr diff --git a/roles/shadowsocks/tasks/main.yml b/roles/shadowsocks/tasks/main.yml index 26059fa..bd22af4 100644 --- a/roles/shadowsocks/tasks/main.yml +++ b/roles/shadowsocks/tasks/main.yml @@ -9,6 +9,7 @@ src: shadowsocks dest: /usr/local/etc/rc.d/shadowsocks mode: 0555 + notify: restart-shadowsocks - name: setup configuration file vars: @@ -18,6 +19,7 @@ dest: /usr/local/etc/shadowsocks-libev/{{ profile.name }}.json mode: 0640 with_items: "{{ shadowsocks.profiles }}" + notify: restart-shadowsocks - name: setup rc.conf lineinfile: |