Hello Grimble!
Wednesday May 08 2024 11:51, Grimble wrote to All:
Does the folder content look similr to this ? :
[vince@applewood ~]$ sudo ls -la /var/run/webmin/
total 68
drwx------ 3 root bin 200 Apr 29 00:05 .
drwxr-xr-x 44 root root 1240 May 8 16:01 ..
-rwx------ 1 root root 0 Apr 29 01:00 blocked
-rw-r--r-- 1 root root 315 Apr 29 01:00 miniserv.error
-rw-r--r-- 1 root root 54 May 8 16:06 miniserv.lastcrons
-rw-r--r-- 1 root root 5 Apr 29 01:00 miniserv.pid
-rw-r--r-- 1 root root 50500 Apr 29 00:05 module.infos.cache
drwx------ 30 root root 600 Apr 30 00:00 modules
-rwx------ 1 root root 0 Apr 29 01:00 sessiondb.dir
-rwx------ 1 root root 1024 Apr 29 01:00 sessiondb.pag
Note that all is owned by root
As for /usr/lib/systemd/system/webmin.service
[Unit]
Description=Webmin server daemon
[Service]
Environment="PERLLIB=/usr/share/webmin"
ExecStart=/usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf ExecStop=/bin/kill $MAINPID
ExecReload=/bin/kill -HUP $MAINPID
PIDFile=/run/webmin/miniserv.pid
Type=forking
Restart=always
RestartSec=2s
TimeoutSec=15s
[Install]
WantedBy=multi-user.target
webmin service is active
and a check on the service :
udo systemctl status webmin.service
● webmin.service - Webmin server daemon
Loaded: loaded (/usr/lib/systemd/system/webmin.service; enabled;
preset: d>
Active: active (running) since Mon 2024-04-29 01:00:06 BST; 1 week 2
days >
Process: 919 ExecStart=/usr/share/webmin/miniserv.pl /etc/webmin/miniserv.c>
Main PID: 2991 (miniserv.pl)
Tasks: 1 (limit: 19053)
Memory: 87.5M
CPU: 1min 25.866s
CGroup: /system.slice/webmin.service
└─2991 /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/min>
Apr 29 01:00:03 applewood.server systemd[1]: Starting webmin.service...
Apr 29 01:00:06 applewood.server systemd[1]: Started webmin.service. [vince@applewood ~]$ sudo systemctl status webmin.service
● webmin.service - Webmin server daemon
Loaded: loaded (/usr/lib/systemd/system/webmin.service; enabled;
preset: disabled)
Active: active (running) since Mon 2024-04-29 01:00:06 BST; 1 week 2
days ago
Process: 919 ExecStart=/usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf (code=exited, status=0/SUC>
Main PID: 2991 (miniserv.pl)
Tasks: 1 (limit: 19053)
Memory: 87.5M
CPU: 1min 25.869s
CGroup: /system.slice/webmin.service
└─2991 /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf
Apr 29 01:00:03 applewood.server systemd[1]: Starting webmin.service...
Apr 29 01:00:06 applewood.server systemd[1]: Started webmin.service.
Hope the above helps in some way.
Vincent
Can someone explain the following please?
In order for Webmin to run, it needs /var/run/webmin, as the following
extract from webmin.service
shows: [Service] Environment="PERLLIB=/usr/libexec/webmin" ExecStart=/ usr/libexec/webmin/miniserv.pl
/etc/webmin/miniserv.conf ExecStop=/bin/kill
$MAINPID ExecReload=/bin/kill -HUP
$MAINPID PIDFile=/var/run/webmin/miniserv.pid Type=forking Restart=alw
ays RestartSec=2s TimeoutSec=15s TimeoutStopSec=300s
So I create it, and all is good. However, it does not survive over
(re)boot, and I can't see why it should be deleted on shutdown, so I
have to re-create it on startup.
--
Grimble
Registered Linux User #450547
Machine 'Bach' running Plasma 5.27.10 on 6.6.28-desktop-1.mga9 kernel. Mageia release 9 (Official) for x86_64
Vincent
SEEN-BY: 25/0 21 250/0 1 2 3 4 5 6 8 13 14 15 263/0 362/6 467/4 712/1321