directadmin.conf variable: systemd

Version 1.49


Debian 8 and CentOS 7 typically both use systemd/systemctl by default, so DirectAdmin as coded with hard #ifdef checks based on the OS the binaries were compiled on. Some instances of Ubuntu based on Debian 8 do not use systemd, so this causes several issues, including DA's inability to restart services, and the mysql.sock path, among other things. New directadmin.conf variable: systemd=0|1 The default value depends on which OS you're running. The value affects the following variables, systemd=1 above, systemd=0 below: /run/ /var/run/ graceful_restarts=1 graceful_restarts=0 /run/ /var/run/ /bin/systemctl or /usr/bin/systemctl vs /sbin/service or /etc/init.d/ or /usr/local/etc/rc.d/ apache syntax check with /usr/sbin/httpd -t service/init.d httpd configtext Debian: /usr/local/mysql/data/mysql.sock /tmp/mysql.sock /run/ /var/run/ /run/ /var/run/

Interested to try DirectAdmin? Get a 30-day Free Trial!