Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: gbl on September 26, 2004, 11:45:01 AM
-
After execute this Script from Server-manager
#!/usr/bin/perl -wT
package esmith;
BEGIN
{
$ENV {'SHELL'}='/bin/bash';
delete $ENV {'ENV'};
}
use strict;
use esmith::util;
use esmith::db;
my %conf;
tie %conf, 'esmith::config';
db_set_prop (\%conf, 'dhcpd', 'status', 'disabled');
esmith::util::backgroundCommand (8, "/etc/init.d/dhcpd", "start");
I get this error
Sep 26 13:39:44 test e-smith-bg: Stopping dhcpd:svc: warning: unable to control /service/dhcpd: access denied
Sep 26 13:39:44 test dhcpd: Stopping dhcpd succeeded
Sep 26 13:39:44 test e-smith-bg: [ OK ]^M
Sep 26 13:39:44 test e-smith-bg: Starting dhcpd:svc: warning: unable to control /service/dhcpd: access denied
Sep 26 13:39:45 test dhcpd: Starting dhcpd failed
Sep 26 13:39:45 test e-smith-bg: [ FAILED ]^M
Can anyone tell my why?
-
After execute this Script from Server-manager
Can anyone tell my why?
You can't execute scripts from the server-manager. Is this a panel you are trying to build or something?
Please explain exactly what you are trying to do. This would make it much easier for people to jump in and provide suggestions.
Greg