mirror of
https://github.com/webmin/webmin.git
synced 2026-05-14 10:40:29 +01:00
Fail if boot command was missing
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user