You are not logged in.

#1 2012-05-30 09:48:22

marenkay
Member
From: Germany
Registered: 2011-05-29
Posts: 6
Website

[SOLVED] systemd and Apache

Greetings,

I am running Arch with systemd instead of the usual init scripts, and have troubles with running Apache over systemd.  I have created a service file, according to the documentation on the system services wiki page but it seems, Apache never successfuly starts claiming that it can not bind to 127.0.0.1.

/etc/systemd/system/httpd.service

[Unit]
Description=Apache Webserver
After=network.target

[Service]
Type=forking
EnvironmentFile=/etc/conf.d/apache
ExecStart=/usr/sbin/httpd -k start $OPTIONS
ExecStop=/usr/sbin/httpd -k graceful-stop $OPTIONS
ExecReload=/usr/sbin/httpd -k graceful $OPTIONS
Restart=always

[Install]
WantedBy=multi-user.target

/etc/tmpfiles.d/httpd.conf

D /var/run/httpd 0755 http http -

It seems, the service is configured to wait for the network target but does not actually wait for it.

Any hints for me?

WkR,
Daniel

Last edited by marenkay (2012-05-31 06:43:36)

Offline

#2 2012-05-30 10:07:48

Rotech
Member
Registered: 2009-06-02
Posts: 10

Re: [SOLVED] systemd and Apache

Try systemd-httpd-units from the AUR.

Offline

#3 2012-05-30 14:51:58

marenkay
Member
From: Germany
Registered: 2011-05-29
Posts: 6
Website

Re: [SOLVED] systemd and Apache

Oh my, and there also is a systemd-mysqld-units package in AUR. Thanks a lot.

Offline

#4 2012-05-31 00:56:52

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 6,854

Re: [SOLVED] systemd and Apache

Mark [solved] please.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#5 2012-11-13 07:30:00

amadar
Banned
Registered: 2011-04-15
Posts: 147

Re: [SOLVED] systemd and Apache

In case anyone runs across this, apache and mysql already ship with systemd units so don't install these. [close]

Last edited by amadar (2012-11-13 07:30:24)

Offline

Board footer

Powered by FluxBB