directadmin.conf variable: systemd

Version 1.49

Feature
Finished

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/httpd.pid /var/run/httpd.pid graceful_restarts=1 graceful_restarts=0 /run/nginx.pid /var/run/nginx.pid /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/dataskq.pid /var/run/dataskq.pid /run/directadmin.pid /var/run/directadmin.pid

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