systemd on Solydxk

Here is the place were the team and the community projects meet together. Help us to develop SolydXK projects or contribute your ideas for future releases.
kurotsugi
Posts: 2240
Joined: 09 Jan 2014 00:17

Re: systemd on Solydxk

Postby kurotsugi » 25 Feb 2014 17:01

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

User avatar
sumitb
Posts: 43
Joined: 17 Jan 2014 03:44
Location: Jakarta - Indonesia

Re: systemd on Solydxk

Postby sumitb » 25 Feb 2014 17:38

@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 :?
Machine: Lenovo G580, Corei5-3210M, 8GB DDR3 1600Mhz RAM, Intel HD4000, Seagate 500GB HDD, Intel HD-ALC269VC Audio, Broadcom BCM4313 WLAN, Atheros AR8162 LAN, Broadcom BCM20702A0 BT

OS: SolydK x64, SolydX x64 in VB
Alt OS: Windows 8.1 x64


kurotsugi
Posts: 2240
Joined: 09 Jan 2014 00:17

Re: systemd on Solydxk

Postby kurotsugi » 25 Feb 2014 18:07

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.

User avatar
Arjen Balfoort
Site Admin
Posts: 9332
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: systemd on Solydxk

Postby Arjen Balfoort » 25 Feb 2014 19:32

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.


SolydXK needs you!
Development | Testing | Translations

kurotsugi
Posts: 2240
Joined: 09 Jan 2014 00:17

Re: systemd on Solydxk

Postby kurotsugi » 25 Feb 2014 19:44

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.

User avatar
GeneC
Posts: 747
Joined: 12 Feb 2013 17:49
Location: Woods of Maine

Re: systemd on Solydxk

Postby GeneC » 25 Feb 2014 20:09

/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.
#

GeneC

Debian (Testing)
Siduction (Debian SID)

kurotsugi
Posts: 2240
Joined: 09 Jan 2014 00:17

Re: systemd on Solydxk

Postby kurotsugi » 25 Feb 2014 20:21

hmm...manjaro. there are lots of temptation to use manjaro these days 8-)

User avatar
GeneC
Posts: 747
Joined: 12 Feb 2013 17:49
Location: Woods of Maine

Re: systemd on Solydxk

Postby GeneC » 25 Feb 2014 20:31

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.
GeneC

Debian (Testing)
Siduction (Debian SID)

User avatar
GeneC
Posts: 747
Joined: 12 Feb 2013 17:49
Location: Woods of Maine

Re: systemd on Solydxk

Postby GeneC » 25 Feb 2014 20:42

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
GeneC

Debian (Testing)
Siduction (Debian SID)

kurotsugi
Posts: 2240
Joined: 09 Jan 2014 00:17

Re: systemd on Solydxk

Postby kurotsugi » 25 Feb 2014 20:55

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:

User avatar
sumitb
Posts: 43
Joined: 17 Jan 2014 03:44
Location: Jakarta - Indonesia

Re: systemd on Solydxk

Postby sumitb » 26 Feb 2014 02:47

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. :)
Machine: Lenovo G580, Corei5-3210M, 8GB DDR3 1600Mhz RAM, Intel HD4000, Seagate 500GB HDD, Intel HD-ALC269VC Audio, Broadcom BCM4313 WLAN, Atheros AR8162 LAN, Broadcom BCM20702A0 BT

OS: SolydK x64, SolydX x64 in VB
Alt OS: Windows 8.1 x64


User avatar
GeneC
Posts: 747
Joined: 12 Feb 2013 17:49
Location: Woods of Maine

Re: systemd on Solydxk

Postby GeneC » 26 Feb 2014 11:52

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)... ;)
GeneC

Debian (Testing)
Siduction (Debian SID)

User avatar
Arjen Balfoort
Site Admin
Posts: 9332
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: systemd on Solydxk

Postby Arjen Balfoort » 22 Jun 2014 09:53

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


SolydXK needs you!
Development | Testing | Translations

jeffreyC
Posts: 22
Joined: 28 Dec 2013 18:15

Re: systemd on Solydxk

Postby jeffreyC » 25 Jun 2014 15:43

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.

kurotsugi
Posts: 2240
Joined: 09 Jan 2014 00:17

Re: systemd on Solydxk

Postby kurotsugi » 26 Jun 2014 06:19

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.


Return to “Suggestions & ideas / Open Projects”

Who is online

Users browsing this forum: No registered users and 2 guests