trouble starting services?

General support questions
Post Reply
Greg_E
Posts: 143
Joined: 2014/04/04 18:53:45

trouble starting services?

Post by Greg_E » 2014/07/13 16:01:56

I'm working on setting up a webserver for local use, installed httpd, mariadb and mariadb-server, and php, php-mysql, php-xml. Did the old style service httpd start and noticed it forwarded off to systemctl so I did systemctl enable httpd.service to get it running as a service on reboots. Went down to mariadb and ran systemctl start mariadb.service and tried systemctl enable mariadb.service and it gave me some text output that I don't really understand. I got it working by user the older chkconfig mariadb on which it told me was forwarded to systemctl just like I typed before.

Code: Select all

[root@localhost liveuser]# systemctl start mariadb.service
[root@localhost liveuser]# systemctl enable mariadb.service
ln -s '/usr/lib/systemd/system/mariadb.service' '/etc/systemd/system/multi-user.target.wants/mariadb.service'
What am I doing wrong? Is anything wrong?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: trouble starting services?

Post by TrevorH » 2014/07/13 16:53:00

Nothing wrong. Normal.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Greg_E
Posts: 143
Joined: 2014/04/04 18:53:45

Re: trouble starting services?

Post by Greg_E » 2014/07/13 19:58:48

Thanks. Also something to note is systemctl status <service name> to check the status of a service, just in case the next person just learning this comes around on a search.

Post Reply