c1552a6
diff --git a/spec/controllers/service_spec.rb b/spec/controllers/service_spec.rb
c1552a6
index 10abdaf..3cff608 100644
c1552a6
--- a/spec/controllers/service_spec.rb
c1552a6
+++ b/spec/controllers/service_spec.rb
c1552a6
@@ -28,7 +28,7 @@ describe Service do
c1552a6
     
c1552a6
     File.exist?(Service::INITD_PATH).should be_true
c1552a6
     File.read(Service::INITD_PATH).should include('CONFIG_PATH=tmp/sandbox/etc/thin',
c1552a6
-                                                  'SCRIPT_NAME=tmp/sandbox/etc/init.d/thin',
c1552a6
+                                                  'SCRIPT_NAME=tmp/sandbox' + (File.directory?('/etc/rc.d') ? '/etc/rc.d/thin' : '/etc/init.d/thin'),
c1552a6
                                                   'DAEMON=' + Command.script)
c1552a6
   end
c1552a6