mirror of
https://github.com/webmin/webmin.git
synced 2026-01-16 15:06:07 +00:00
22 lines
369 B
Perl
Executable File
22 lines
369 B
Perl
Executable File
#!/usr/local/bin/perl
|
|
# Start or stop Bacula at boot
|
|
|
|
require './bacula-backup-lib.pl';
|
|
&ReadParse();
|
|
&foreign_require("init", "init-lib.pl");
|
|
|
|
if ($in{'boot'}) {
|
|
foreach $p (@bacula_inits) {
|
|
&init::enable_at_boot($p);
|
|
}
|
|
&webmin_log("bootup");
|
|
}
|
|
else {
|
|
foreach $p (@bacula_inits) {
|
|
&init::disable_at_boot($p);
|
|
}
|
|
&webmin_log("bootdown");
|
|
}
|
|
&redirect("");
|
|
|