aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--roles/shadowsocks/files/shadowsocks3
-rw-r--r--roles/shadowsocks/tasks/main.yml2
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: