|
|
@ -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); |
|
|
|