Correction du script de démarrage
This commit is contained in:
parent
32337d481f
commit
3b4df20e52
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue