summaryrefslogtreecommitdiffstats
path: root/usr/local/www/pkg_edit.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-01-31 04:34:40 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-01-31 04:34:40 +0000
commita485a6f532503a8506c6a43558f1dcc3aa02aaf3 (patch)
tree3d20828e9daee7873fd4bb771b25d91a0d8e1f84 /usr/local/www/pkg_edit.php
parent1be00369fc80abeee84fda33a4cc1be4f42678cd (diff)
downloadpfsense-a485a6f532503a8506c6a43558f1dcc3aa02aaf3.zip
pfsense-a485a6f532503a8506c6a43558f1dcc3aa02aaf3.tar.gz
Add start_command and restart_command xml tags.
Diffstat (limited to 'usr/local/www/pkg_edit.php')
-rwxr-xr-xusr/local/www/pkg_edit.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/usr/local/www/pkg_edit.php b/usr/local/www/pkg_edit.php
index 172d848..bea2147 100755
--- a/usr/local/www/pkg_edit.php
+++ b/usr/local/www/pkg_edit.php
@@ -169,6 +169,14 @@ include("fbegin.inc");
parse_package_templates();
+ /* if start_command is defined, restart w/ this */
+ if($pkg['start_command'] <> "")
+ exec($pkg['start_command'] . ">/dev/null 2&>1");
+
+ /* if restart_command is defined, restart w/ this */
+ if($pkg['restart_command'] <> "")
+ exec($pkg['restart_command'] . ">/dev/null 2&>1");
+
if($pkg['aftersaveredirect'] <> "") {
header("Location: " . $pkg['aftersaveredirect']);
} else {
OpenPOWER on IntegriCloud