Correction du script de démarrage

This commit is contained in:
Daniel Berteaud 2012-10-14 20:58:48 +02:00
parent 32337d481f
commit 3b4df20e52
1 changed files with 2 additions and 2 deletions

View File

@ -12,14 +12,14 @@ my @args = ("--debug=1", "--dbname=$dbname", "--dbuser=$dbuser", "--dbpass=$dbpa
push @args, "--dbhost=$dbhost" if ($dbhost ne 'localhost');
my $smbd = $c->get('smbd');
my $smbd = $c->get('smbd')->prop('status');
if ($smbd ne 'enabled'){
exec("sv", "d", "/service/samba-db-logd");
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";
exit(1);