Correction du script de démarrage

tags/0.0.1
Daniel Berteaud 12 years ago
parent 32337d481f
commit 3b4df20e52
  1. 4
      root/var/service/samba-db-logd/run

@ -12,14 +12,14 @@ my @args = ("--debug=1", "--dbname=$dbname", "--dbuser=$dbuser", "--dbpass=$dbpa
push @args, "--dbhost=$dbhost" if ($dbhost ne 'localhost'); push @args, "--dbhost=$dbhost" if ($dbhost ne 'localhost');
my $smbd = $c->get('smbd'); my $smbd = $c->get('smbd')->prop('status');
if ($smbd ne 'enabled'){ if ($smbd ne 'enabled'){
exec("sv", "d", "/service/samba-db-logd"); exec("sv", "d", "/service/samba-db-logd");
exit(0); exit(0);
} }
exec("/usr/bin/squid-db-logd", @args) exec("/usr/bin/samba-db-logd", @args)
or die "Cannot run the Samba Database Loggind Daemon"; or die "Cannot run the Samba Database Loggind Daemon";
exit(1); exit(1);

Loading…
Cancel
Save