mirror of
https://github.com/webmin/webmin.git
synced 2025-07-21 23:40:34 +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");
|
||||
}
|
||||
my $temp = &transname();
|
||||
my $killcmd = &has_command('kill');
|
||||
$ENV{'WEBMIN_KILLCMD'} = $killcmd;
|
||||
©_source_dest("$root_directory/webmin-systemd", "$temp");
|
||||
my $lref = &read_file_lines($temp);
|
||||
foreach my $l (@{$lref}) {
|
||||
|
@ -4,8 +4,8 @@ Description=Webmin server daemon
|
||||
[Service]
|
||||
Environment="PERLLIB=WEBMIN_LIBDIR"
|
||||
ExecStart=WEBMIN_LIBDIR/miniserv.pl WEBMIN_CONFIG/miniserv.conf
|
||||
ExecStop=/bin/kill $MAINPID
|
||||
ExecReload=/bin/kill -USR1 $MAINPID
|
||||
ExecStop=WEBMIN_KILLCMD $MAINPID
|
||||
ExecReload=WEBMIN_KILLCMD -USR1 $MAINPID
|
||||
PIDFile=WEBMIN_VAR/miniserv.pid
|
||||
Type=forking
|
||||
Restart=always
|
||||
|
Reference in New Issue
Block a user