Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: haj on November 11, 2005, 01:54:16 AM

Title: Start/Stop service from command line
Post by: haj on November 11, 2005, 01:54:16 AM
Hello,

I want to start/stop a service using a perl script:

Code: [Select]
#!/usr/bin/perl -w

my $res = /etc/init.d/mldonkey start;
print $res;


Simple isn't it? But I get an error when ran thrown apache (http-admin):

Starting Mldonkey-server: standard in must be a tty [ FAILED ]

May some one help me??

Best regards

--
Laurent
Title: Re: Start/Stop service from command line
Post by: CharlieBrady on November 17, 2005, 01:47:08 PM
Quote from: "haj"
Hello,

I want to start/stop a service using a perl script:

Code: [Select]
#!/usr/bin/perl -w

my $res = /etc/init.d/mldonkey start;
print $res;


Simple isn't it? But I get an error when ran thrown apache (http-admin):

Starting Mldonkey-server: standard in must be a tty [ FAILED ]

May some one help me??


This is an issue with Mldonkey-server - you should perhaps ask in an Mldonkey forum. Maybe they can tell you why Mldonkey-server expects stdin to be a tty.
Title: Re: Start/Stop service from command line
Post by: haj on November 17, 2005, 10:53:59 PM
Quote from: "CharlieBrady"

This is an issue with Mldonkey-server - you should perhaps ask in an Mldonkey forum. Maybe they can tell you why Mldonkey-server expects stdin to be a tty.


Thanks Charlie