Page 2 of 2

Re: systemd on Solydxk

Posted: 25 Feb 2014 17:01
by kurotsugi

Code: Select all

systemctl status rc-local.service
rc-local.service - /etc/rc.local Compatibility
   Loaded: loaded (/lib/systemd/system/rc-local.service; static)
   Active: active (exited) since Tue 2014-02-25 23:54:17 WIB; 3min 53s ago
  Process: 916 ExecStart=/etc/rc.local start (code=exited, status=0/SUCCESS)
I'm using 204-7 with some script inside rc.local

Re: systemd on Solydxk

Posted: 25 Feb 2014 17:38
by sumitb
@Schoelje : Have you checked whether the service unit file is present at etc/systemd/system/rc-local.service? If not, you might need to create it. Have a look at below 2 links:

http://superuser.com/questions/278396/s ... c-rc-local

http://forums.fedoraforum.org/showthread.php?t=272075

These are not directly about debian but basically talk about the same thing. The rc-local.service is basically there to provide compatibility for non-systemd services that rely on sysv rc.d scripts.

Update:

Another good read on rc.d scripts: http://bencane.com/2011/12/30/when-its- ... -rc-local/

However, in the end this article says in bold: rc.d scripts are not used by Debian Linux :?

Re: systemd on Solydxk

Posted: 25 Feb 2014 18:07
by kurotsugi
what he mean is that /etc/rc.local isn't not used again in debian. the file is still there but it only contain 'exit 0' as default. the script was moved to somewhere (I forgot which one) but user still could use rc.local if they want (like I did). since I'm not using systemd-sysv /etc/systemd/system/rc-local.service isn't exist. it seems to me that rc.local is executed not directly by systemd. debian might still using sysvinit to executed them just like another services.

Re: systemd on Solydxk

Posted: 25 Feb 2014 19:32
by Arjen Balfoort
This is the /etc/rc.local in SolydK:

Code: Select all

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

mkdir -p /dev/cgroup/cpu
mount -t cgroup cgroup /dev/cgroup/cpu -o cpu
mkdir -m 0777 /dev/cgroup/cpu/user
echo "/usr/local/sbin/cgroup_clean" > /dev/cgroup/cpu/release_agent
echo 2000 > /sys/module/block/parameters/events_dfl_poll_msecs

exit 0
If I comment the line "mount -t cgroup cgroup /dev/cgroup/cpu -o cpu", the error does not occur.
I don't even know if the cgroup lines are still needed. They are a remnant of our Mint days.

Re: systemd on Solydxk

Posted: 25 Feb 2014 19:44
by kurotsugi
I don't know the purpose of that line but i'm sure that both solydx and LMDE didn't have any script by default on rc.local

Code: Select all

kurotsugi@kurozv3:~$ cat /etc/rc.local 
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

#brightness setting
chmod 777 /sys/class/backlight/acpi_video0/brightness
echo 5 > /sys/class/backlight/acpi_video0/brightness

exit 0
I have brightness setting script due to a bug in my laptop but I think it should be safe to delete all that line.

Re: systemd on Solydxk

Posted: 25 Feb 2014 20:09
by GeneC
/etc/rc.local (from a Manjaro installation that uses systemd by default).
Nothing there.

Code: Select all

[gene@manjaro ~]$ cat /etc/rc.local 
#!/bin/bash
#
# /etc/rc.local: Local multi-user startup script.
#


Re: systemd on Solydxk

Posted: 25 Feb 2014 20:21
by kurotsugi
hmm...manjaro. there are lots of temptation to use manjaro these days 8-)

Re: systemd on Solydxk

Posted: 25 Feb 2014 20:31
by GeneC
Hi kurotsugi... :)

I do notice a quicker boot time with systemd and Manjaro. Might be something nice for SolydXK.. ;)
Its real nice, but I do prefer Debian based. (simpler), and hard to beat APT.

Re: systemd on Solydxk

Posted: 25 Feb 2014 20:42
by GeneC
Good info on SystemD
http://www.freedesktop.org/wiki/Software/systemd/

Especially this section
Manuals and Documentation for Users and Administrators
  • Manual Pages
    Tips And Tricks
    Frequently Asked Questions
    Debugging systemd Problems
    Incompatibilities with SysV/LSB
    Socket Activation with Popular Daemons
    Booting Without /usr is Broken
    Predictable Network Interface Names
    API File Systems
    Running Services After the Network is up
    My Service Can't Get Realtime!
    The 30 Biggest Myths about systemd

Re: systemd on Solydxk

Posted: 25 Feb 2014 20:55
by kurotsugi
well...it's not the boot time. manjaro have nice xfce desktop and they have a lot of cool tools for user. the things that prevent me from using them is my unfamiliarity with pacman and downloading the iso. I live in indonesia and with my slow internet connection it might take a whole day to download the iso :lol:

Re: systemd on Solydxk

Posted: 26 Feb 2014 02:47
by sumitb
I think the real power of systemd is only seen after properly enabling the parallel loading of startup services. By properly, I mean setting up systemd to do parallel loading and prioritizing loading of services intelligently to achieve the desired effect. Merely installing systemd with its default configuration won't do much. :)

Re: systemd on Solydxk

Posted: 26 Feb 2014 11:52
by GeneC
Systemd 'how to" from Siduction (Debian SID) Wiki.

http://wiki.siduction.de/index.php?title=Systemd

(Its in German, I have to use the 'Google Translate" function of my browser)... ;)

Re: systemd on Solydxk

Posted: 22 Jun 2014 09:53
by Arjen Balfoort
I am resurrecting this old topic.
I'm experimenting with a systemd ISO, and I could use some help: http://forums.solydxk.nl/viewtopic.php?p=38167#p38167

Re: systemd on Solydxk

Posted: 25 Jun 2014 15:43
by jeffreyC
I see that Debian has systemd 208-2 in experimental, while upstream systemd is 214.

It would be nicer if they would try to at least work on this years software for release next year, instead of starting with last years software.

Re: systemd on Solydxk

Posted: 26 Jun 2014 06:19
by kurotsugi
every systemd release tends to tremendously huge and introduce lots of new bugs. it's normal for a distro with 'stability' in their mind to pick the matured, bugless, older version. even a bleeding edge distro like arch haven't use the latest version yet. manjaro is still on 212.