mirror of
https://github.com/webmin/webmin.git
synced 2025-07-25 01:23:45 +00:00
Fix to check on kill
command for systemd
unit file
This commit is contained in:
@ -21,6 +21,8 @@ if ($product) {
|
|||||||
unlink("$p/$product");
|
unlink("$p/$product");
|
||||||
}
|
}
|
||||||
my $temp = &transname();
|
my $temp = &transname();
|
||||||
|
my $killcmd = &has_command('kill');
|
||||||
|
$ENV{'WEBMIN_KILLCMD'} = $killcmd;
|
||||||
©_source_dest("$root_directory/webmin-systemd", "$temp");
|
©_source_dest("$root_directory/webmin-systemd", "$temp");
|
||||||
my $lref = &read_file_lines($temp);
|
my $lref = &read_file_lines($temp);
|
||||||
foreach my $l (@{$lref}) {
|
foreach my $l (@{$lref}) {
|
||||||
|
@ -4,8 +4,8 @@ Description=Webmin server daemon
|
|||||||
[Service]
|
[Service]
|
||||||
Environment="PERLLIB=WEBMIN_LIBDIR"
|
Environment="PERLLIB=WEBMIN_LIBDIR"
|
||||||
ExecStart=WEBMIN_LIBDIR/miniserv.pl WEBMIN_CONFIG/miniserv.conf
|
ExecStart=WEBMIN_LIBDIR/miniserv.pl WEBMIN_CONFIG/miniserv.conf
|
||||||
ExecStop=/bin/kill $MAINPID
|
ExecStop=WEBMIN_KILLCMD $MAINPID
|
||||||
ExecReload=/bin/kill -USR1 $MAINPID
|
ExecReload=WEBMIN_KILLCMD -USR1 $MAINPID
|
||||||
PIDFile=WEBMIN_VAR/miniserv.pid
|
PIDFile=WEBMIN_VAR/miniserv.pid
|
||||||
Type=forking
|
Type=forking
|
||||||
Restart=always
|
Restart=always
|
||||||
|
Reference in New Issue
Block a user