Debian jessie: A couple of systemd questions
1: Using
mysql.service loaded active running LSB: Start and stop the mysql database server daemon
nginx.service loaded active running A high performance web server and a reverse proxy server
php5-fpm.service loaded active running The PHP FastCGI Process Manager
2: However when I try and get the status of each service using
$ sudo systemctl is-enabled nginx
enabled
$ sudo systemctl is-enabled php5-fpm
enabled
$ sudo systemctl is-enabled mysql
Failed to get unit file state for mysql.service: No such file or directory
3: However, using
Can I safely ignore the "Failed to get unit file state for mysql.service" error, or do I need to do some extra configuring to bring mySQL completely 'under systemd's wing' [so to speak]?
3 Replies
I am also able to successfully enable/disable mySQL on reboot using
Apologies for the vagueness but, short of issuing the odd command from time-to-time to restart a crashed process, the whole world of system init, runlevels and the relative merits and de-merits of it all are a bit of a [very] grey area for me.
sudo systemctl enable mysql
–---
Synchronizing state for mysql.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d mysql defaults
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = "en_GB",
LC_CTYPE = "UTF-8",
LANG = "en_GB.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_GB.UTF-8").
insserv: warning: current start runlevel(s) (empty) of script `mysql' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `mysql' overrides LSB defaults (0 1 6).
Executing /usr/sbin/update-rc.d mysql enable
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = "en_GB",
LC_CTYPE = "UTF-8",
LANG = "en_GB.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_GB.UTF-8").
So, ignore the error.
BTW: You might want to fix locale errors once and forever. It's quite easy. Just do this as root:
dpkg-reconfigure locales
BTW: You might want to fix locale errors once and forever. It's quite easy. Just do this as root: dpkg-reconfigure locales…"__
Thanks.
Funnily enough, I have just fixed the LOCALE problem, after months of being unable to. I'd tried
Once I 'matched them up' the errors disappeared.