[SOLVED] apache and mariadb not starting as service on boot

Ask questions about Arch Linux ARM. Please search before making a new topic.

[SOLVED] apache and mariadb not starting as service on boot

Postby whatshisname » Sat Jan 12, 2019 3:45 pm

I rebooted my Odroid C1 yesterday and discovered Apache and MariaDB were not running.

After much futzing around, I discovered that in the case of Apache, it was not creating a "/run/httpd/httpd.pid" file. And for mariadb, it couldn't create a "/run/mysqld/mysqld.sock" file. In each case the respective folders were not there much less the pid or socket files.

Once I created a "/run/httpd" folder and gave ownership as "http:http", "sudo systemctl start httpd" successfully started the server.

Same for mariadb: "mkdir /run/mysqld;chown mysql:mysql /run/mysqld" then "sudo systemctl start mysqld" sucessfully started that server.

Permissions on /run look like this:
$this->bbcode_second_pass_code('', 'drwxr-xr-x 14 root root 420 Jan 12 10:22 run')
The only other data point to share is when I run:
$this->bbcode_second_pass_code('', '%:sudo journalctl -xe')
I get quite a few instances of this error message. I think I read elsewhere this is not uncommon for the Odroid:
$this->bbcode_second_pass_code('', 'Jan 12 10:14:29 odroid kernel: mmc_blk_reset 939 reset error md->reset_done:1 and type:1
Jan 12 10:14:29 odroid kernel: end_request: I/O error, dev mmcblk0, sector 15448056')
Anybody else run into this problem lately?
Last edited by whatshisname on Sun Jan 13, 2019 11:14 pm, edited 1 time in total.
whatshisname
 
Posts: 19
Joined: Sat Sep 29, 2012 5:45 pm

Re: apache and mariadb not starting as service on boot

Postby whatshisname » Sun Jan 13, 2019 11:12 pm

Fixed by adding the following line in the [Service] section to "/usr/lib/systemd/mariadb.service":

$this->bbcode_second_pass_code('', '[Service]
RuntimeDirectory=mysqld')
and this in the [Service] section to "/usr/lib/systemd/service/httpd.service":
$this->bbcode_second_pass_code('', '[Service]
RuntimeDirectory=httpd')
whatshisname
 
Posts: 19
Joined: Sat Sep 29, 2012 5:45 pm

Re: [SOLVED] apache and mariadb not starting as service on b

Postby doragasu1 » Thu Jan 17, 2019 8:59 pm

Also worked for me, thanks for posting the solution!!!
doragasu1
 
Posts: 100
Joined: Sun Jun 03, 2012 3:52 pm


Return to User Questions

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 9 guests