Upstart fixes

This commit is contained in:
Jamie Cameron
2011-04-20 09:25:41 -07:00
parent 46246b6443
commit ffade70f1f
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -47,7 +47,7 @@ index_uname=Service name
index_udesc=Service description
index_uboot=Start at boot?
index_ustatus=Running now?
index_uadd=Create a new service.
index_uadd=Create a new upstart service.
edit_title=Edit Action
create_title=Create Action
@@ -206,6 +206,7 @@ upstart_eclash=A service with the same name already exists
upstart_edesc=Missing service description
upstart_eserver=No server command entered
upstart_eserver2=Server command does not exist
upstart_eserver3=Only one server command can be entered
upstart_return=upstart service
__norefs=1
+1
View File
@@ -40,6 +40,7 @@ elsif ($in{'new'}) {
$in{'server'} =~ /\S/ || &error($text{'upstart_eserver'});
($bin, $args) = split(/\s+/, $in{'server'});
&has_command($bin) || &error($text{'upstart_eserver2'});
$in{'server'} =~ /;|\&\&|\|\|/ && &error($text{'upstart_eserver3'});
$in{'prestart'} =~ s/\r//g;
# Create the config file