Aug
22
2012
How i converted to systemd

I was thinking to convert to systemd for quite some time now
So every time someone mentioned something about systemd (on the internet), i was reading his/her story as my life depend on it.

I am using archlinux so when i’ve read Jason’s blog post,
i was very happy. After a few days, Allan post a similar post
and that was the moment i told my self: “It’s time, i can blame Allan for breaking my system”

I run this command


# pacman -S systemd systemd-arch-units systemd-sysvcompat

and removed sysvinit & initscripts also.

Noticed that /etc/rc.conf became /etc/rc.conf.pacsave
and rebooted my machine.

How difficult is that ?

 

There was also a few steps that i needed to do.

Your reading material is here: Archlinux systemd and
systemd services .

After that was trivial to enable my services.
I have only a few of them:


# grep DAEMONS /etc/rc.conf.pacsave 
DAEMONS=(syslog-ng network crond dbus avahi-daemon cupsd xinetd)

I use static network at work.
Followed this link to create my network service.


vim /etc/conf.d/network
vim /etc/systemd/system/network.service

# systemctl status network
# systemctl enable network.service

# systemctl status syslog-ng
# systemctl enable syslog-ng.service

be aware that cron is cronie !


systemctl status crond.service
systemctl enable cronie.service

systemctl status avahi-daemon
systemctl enable avahi-daemon.service

dbus was already enabled


systemctl status dbus

be aware that cupsd is cups


systemctl status cupsd
systemctl enable cups.service

and finally


systemctl status xinetd
systemctl enable xinetd.service

It was simplest than converted from grub to grub2 !

  1. Avatar di Kevin Vesga Kevin Vesga

    Wednesday, August 22, 2012 - 13:24:17

    Just FYI, by installing systemd-sysvcompat, you do not need to edit your kernel command line. systemd-sysvcompat conflicts with initscripts and makes systemd the default init.

  2. Avatar di ebal ebal

    Wednesday, August 22, 2012 - 15:44:45

    thanks Kevin for noticed that, fixed