2 # Creates some boot-time action
4 package server_manager;
6 $ENV{'WEBMIN_CONFIG'} ||= "/etc/webmin";
7 $ENV{'WEBMIN_VAR'} ||= "/var/webmin";
8 if ($0 =~ /^(.*\/)[^\/]+$/) {
12 $0 = "$pwd/create-boot.pl";
13 require './init-lib.pl';
14 $< == 0 || die "$0 must be run as root";
16 @ARGV >= 1 && @ARGV <= 4 ||
17 die "usage: create-boot.pl <name> [desc] [start-code] [stop-code]";
19 &enable_at_boot(@ARGV);