projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0a1aa4
)
Fail if boot command was missing
author
Jamie Cameron
<jcameron@webmin.com>
Thu, 29 Sep 2011 23:03:04 +0000
(16:03 -0700)
committer
Jamie Cameron
<jcameron@webmin.com>
Thu, 29 Sep 2011 23:03:04 +0000
(16:03 -0700)
init/init-lib.pl
patch
|
blob
|
history
diff --git
a/init/init-lib.pl
b/init/init-lib.pl
index
833d73c
..
f7e5e35
100755
(executable)
--- a/
init/init-lib.pl
+++ b/
init/init-lib.pl
@@
-622,6
+622,8
@@
if ($init_mode eq "upstart" && (!-r "$config{'init_dir'}/$_[0]" ||
}
else {
# Need to create config
+ $_[2] || &error("Upstart service $_[0] cannot be created ".
+ "unless a command is given");
&create_upstart_service($_[0], $_[1], $_[2], undef,
$_[5]->{'fork'});
&system_logged("insserv ".quotemeta($_[0])." >/dev/null 2>&1");