Browse Source

conf - start torclient after hotspot

Émile Morel 10 years ago
parent
commit
30d38ca7fe
2 changed files with 3 additions and 2 deletions
  1. 2 2
      conf/init_ynh-torclient
  2. 1 0
      scripts/install

+ 2 - 2
conf/init_ynh-torclient

@@ -1,8 +1,8 @@
 #!/bin/bash
 ### BEGIN INIT INFO
 # Provides: ynh-torclient
-# Required-Start:    $network $remote_fs $syslog $all
-# Required-Stop:     $network $remote_fs $syslog
+# Required-Start:    $network $remote_fs $syslog ynh-hotspot
+# Required-Stop:     $network $remote_fs $syslog ynh-hotspot
 # Default-Start:     2 3 4 5
 # Default-Stop:      0 1 6
 # Short-Description: Set prerequisites for wifi torclient.

+ 1 - 0
scripts/install

@@ -92,6 +92,7 @@ sudo yunohost app ssowatconf
 
 # Start tor client
 service ynh-torclient start
+service tor restart
 
 # Start tor client at boot 
 insserv ynh-torclient