Permalink
Browse files

Merge pull request #1 from oktocat/master

some minor changes
  • Loading branch information...
2 parents 4856658 + eeb9b93 commit eb37c853a5bb28761cc5380c5b74346015c65e8e @berekuk committed Apr 24, 2012
Showing with 10 additions and 1 deletion.
  1. +10 −1 lib/Ubic/Service/Cocaine.pm
@@ -55,6 +55,15 @@ There is one mandatory parameter: I<endpoint>.
Optional parameters are: I<storage_driver>, I<storage_uri>, I<core_modules>, I<core_announce_endpoint> and I<core_announce_interval>. There's also a boolean I<verbose> option.
=cut
+
+sub start_impl {
+ my $self = shift;
+ unless (-d '/var/run/cocaine') {
+ mkdir('/var/run/cocaine') or die "Can't create dir: $!";
+ }
+ $self->SUPER::start_impl(@_);
+}
+
sub new {
my $class = shift;
@@ -69,7 +78,7 @@ sub new {
});
my $bin = [
- 'cocained',
+ '/usr/bin/cocained',
$params->{endpoint},
($params->{verbose} ? '--verbose' : ()),
map {

0 comments on commit eb37c85

Please sign in to comment.