http://www.virtualmin.com/node/17831
&create_upstart_service($_[0], $_[1], $_[2], $_[5]->{'fork'});
&system_logged("insserv ".quotemeta($_[0])." >/dev/null 2>&1");
}
+ return;
}
if ($init_mode eq "init" || $init_mode eq "local" || $init_mode eq "upstart") {
# In these modes, we create a script to run
$daemon++;
}
local $fn;
- if ($init_mode eq "init") {
+ if ($init_mode eq "init" || $init_mode eq "upstart") {
# Normal init.d system
$fn = &action_filename($_[0]);
}