So I am trying to make a little back end PHP admin to start, restart, and stop some of my daemons. I already made a little PHP interface to to wget files without needing to SSH in. It is just done with an HTML file with a webform, with a POST action to a PHP file.
$this->bbcode_second_pass_code('', '
<?php
{
$file = $_POST['file'];
}
system("wget '$file'")
?>
')
Now, this works great, so I thought to myself, if it works for wget why not rc.d start commands.
So, first, I tried:
$this->bbcode_second_pass_code('', '
<?php
system("rc.d start samba")
?>
')
Which give me the error:
$this->bbcode_second_pass_quote('', '
')A daemon is starting another daemon, this is unlikely to work as intended. :: Starting Samba Server [BUSY] [FAIL]