diff options
author | mcrane <mctch@yahoo.com> | 2009-02-21 14:22:52 -0700 |
---|---|---|
committer | mcrane <mctch@yahoo.com> | 2009-02-21 14:22:52 -0700 |
commit | 4c7ffd6778c902a315167b85d1527d88f17004eb (patch) | |
tree | f9005b436501f2a192c54fbdabafb5561f9f51c1 /config/phpservice/phpservice.inc | |
parent | a0db8c78c4df74d1b2e0e776eab69e6de3996347 (diff) | |
download | pfsense-packages-4c7ffd6778c902a315167b85d1527d88f17004eb.tar.gz pfsense-packages-4c7ffd6778c902a315167b85d1527d88f17004eb.tar.bz2 pfsense-packages-4c7ffd6778c902a315167b85d1527d88f17004eb.zip |
phpservice save output to a log file /var/log/phpservice.log, backround the service, enable delete for php scripts
Diffstat (limited to 'config/phpservice/phpservice.inc')
-rw-r--r-- | config/phpservice/phpservice.inc | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/config/phpservice/phpservice.inc b/config/phpservice/phpservice.inc index 041dfafc..421ac94d 100644 --- a/config/phpservice/phpservice.inc +++ b/config/phpservice/phpservice.inc @@ -63,10 +63,9 @@ function phpservice_sync_package_php() global $config; if($config['installedpackages']['phpservice']['config'] != "") { - - conf_mount_rw(); - config_unlock(); + conf_mount_rw(); + config_unlock(); $tmp = "<?php\n"; $tmp .= "\n"; @@ -186,13 +185,11 @@ function php_install_command() exec("cp /tmp/phpservice_php_edit.tmp /usr/local/www/packages/phpservice/phpservice_php_edit.php"); unlink_if_exists("/tmp/phpservice_php_edit.tmp"); - - //write_config(); - + //write_config(); write_rcfile(array( "file" => "phpservice.sh", - "start" => "/usr/local/bin/php /usr/local/pkg/phpservice.php", + "start" => "/usr/local/bin/php /usr/local/pkg/phpservice.php >> /var/log/phpservice.log &", "stop" => "rm /tmp/phpmonitor.pid" ) ); |