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