Services shows not running status, but they started

Helllo,

after reboot I have this on my Hestia panel: Screenshot by Lightshot

But both mysql and clamav running in server (see output below). What’s wrong and how to fix it in panel?

Tried to restart services via panel; stop via ssh and start via panel again, nothing helped.

# systemctl status mysqld
● mariadb.service - MariaDB 10.5.12 database server
   Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/mariadb.service.d
           └─migrated-from-my.cnf-settings.conf
   Active: active (running) since Tue 2021-08-31 09:30:26 EEST; 13min ago
     Docs: man:mariadbd(8)
           https://mariadb.com/kb/en/library/systemd/
  Process: 3074 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUCCESS)
  Process: 3075 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
  Process: 3077 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= ||   VAR=`cd /usr/bin/..; /usr/bin/galera_recovery`; [ $? -eq 0 ]   && systemctl set-environment _WSREP_START_POSITION=$VA
  Process: 3142 ExecStartPost=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
  Process: 3144 ExecStartPost=/etc/mysql/debian-start (code=exited, status=0/SUCCESS)
 Main PID: 3125 (mariadbd)
   Status: "Taking your SQL requests now..."
    Tasks: 24 (limit: 4915)
   Memory: 325.0M
   CGroup: /system.slice/mariadb.service
           └─3125 /usr/sbin/mariadbd

# systemctl status clamav-daemon
● clamav-daemon.service - Clam AntiVirus userspace daemon
   Loaded: loaded (/lib/systemd/system/clamav-daemon.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/clamav-daemon.service.d
           └─extend.conf
   Active: active (running) since Tue 2021-08-31 09:20:57 EEST; 25min ago
     Docs: man:clamd(8)
           man:clamd.conf(5)
           https://www.clamav.net/documents/
  Process: 14750 ExecStartPre=/bin/mkdir /run/clamav (code=exited, status=1/FAILURE)
  Process: 14751 ExecStartPre=/bin/chown clamav /run/clamav (code=exited, status=0/SUCCESS)
 Main PID: 14752 (clamd)
    Tasks: 2 (limit: 4915)
   Memory: 1.4G
   CGroup: /system.slice/clamav-daemon.service
           └─14752 /usr/sbin/clamd --foreground=true

What is the OS and Version of Hestia?

I assume Amazon 10 is a custom build of Debian 10?

The issue might lay here:

I’m not sure if it’s custom build, I just installed it via Hetzner’s panel when bought a server.
Debian 10.10
Hestia v1.4.12

I’m not sure if everything were fine right before reboot, but ~a week ago services status were shown right. And maybe you’re right about place where problem occurs, but Idk what to do with that :slight_smile:

I use Hetzner Debian image also for over 6 months without any issues:

But also Debian 10 is shown correctly

Thanks for your reply, code in git helped :slight_smile:

Problem was because folder /etc/sysconfig/ , without everything is fine again.