You are not logged in.

#1 2012-04-17 12:01:31

marijus
Member
Registered: 2012-03-12
Posts: 20

how to start lighttpd and mysqld on bootup via systemd?

hello,

i can start them with "systemctl start lighttpd.service" and  "systemctl start mysqld.service" in terminal,
but if i try "systemctl enable lighttpd.service" or "systemctl enable mysqld.service" it says:

Failed to issue method call: No such file or directory

also i could not find any of this service files on my system to link them manually...

help  please!
ty, marijus

Offline

#2 2012-04-17 12:28:15

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,615
Website

Re: how to start lighttpd and mysqld on bootup via systemd?

marijus wrote:

also i could not find any of this service files on my system to link them manually...

Therein lies your problem.  Systemd is very much a work in progress.  See this wiki page for a mysql service file.  I am not sure one has been written for lighttpd yet.

Last edited by graysky (2012-04-17 12:29:24)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2012-04-17 16:23:22

marijus
Member
Registered: 2012-03-12
Posts: 20

Re: how to start lighttpd and mysqld on bootup via systemd?

@graysky
thats the thing i dont understand:

there def is no .service files for this two apps. but why does it start with "systemctl start lighttpd.service" at all?

Offline

#4 2012-04-17 16:25:39

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: how to start lighttpd and mysqld on bootup via systemd?

marijus wrote:

@graysky
thats the thing i dont understand:

there def is no .service files for this two apps. but why does it start with "systemctl start lighttpd.service" at all?

what does "systemctl status lighttpd.service" say?

Offline

#5 2012-04-17 16:56:41

marijus
Member
Registered: 2012-03-12
Posts: 20

Re: how to start lighttpd and mysqld on bootup via systemd?

@65kid

thanks for the hint... now i understand smile


# systemctl status lighttpd.service
lighttpd.service
      Loaded: loaded (/etc/rc.d/lighttpd)
      Active: inactive (dead)
      CGroup: name=systemd:/system/lighttpd.service


# systemctl status mysqld.service
mysqld.service
      Loaded: loaded (/etc/rc.d/mysqld)
      Active: inactive (dead)
      CGroup: name=systemd:/system/mysqld.service


EDIT: ist there still a way to start during bootup?

Last edited by marijus (2012-04-17 17:03:43)

Offline

#6 2012-04-17 17:16:59

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: how to start lighttpd and mysqld on bootup via systemd?

Gentoo might have something useful here; http://en.gentoo-wiki.com/wiki/Systemd#lighttpd

Offline

#7 2012-04-17 17:17:23

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: how to start lighttpd and mysqld on bootup via systemd?

interesting, didn't know that systemd does that automatically. Nevertheless, native service files are always better. smile put them in /etc/systemd/system and "enable" should work fine.

https://wiki.archlinux.org/index.php/Sy … ces#mysqld
http://en.gentoo-wiki.com/wiki/Systemd#lighttpd

Offline

Board footer

Powered by FluxBB