You are not logged in.

#1326 2012-04-06 17:22:21

bobwya
Member
Registered: 2012-01-09
Posts: 36

Re: systemd: Yet Another Init Replacement

lucke wrote:

systemd in extra has that patch applied.

Ta, Just installed the updates - so I'm all good again... I'm not quite ready to start getting to grips with ABS (previous attempts have failed badly yikes )...

Bob

Offline

#1327 2012-04-06 18:41:52

eworm
Package Maintainer (PM)
From: Oberhausen, Germany
Registered: 2010-01-30
Posts: 106
Website

Re: systemd: Yet Another Init Replacement

I fixed my symlinks with this command:

for LINK in `find -L -type l`; do ln -sf /usr/`readlink $LINK` $LINK; done

(Use at your own risk... But it worked for me.)


ArchLinux - make it simple & lightweight

Offline

#1328 2012-04-06 19:31:34

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: systemd: Yet Another Init Replacement

eworm wrote:

I fixed my symlinks with this command:

for LINK in `find -L -type l`; do ln -sf /usr/`readlink $LINK` $LINK; done

(Use at your own risk... But it worked for me.)

Please don't do this... systemctl has a 'reenable' verb that will do this for you.

Offline

#1329 2012-04-06 21:03:28

eworm
Package Maintainer (PM)
From: Oberhausen, Germany
Registered: 2010-01-30
Posts: 106
Website

Re: systemd: Yet Another Init Replacement

Did not know that. Thanks for the hint!
Can I break anything linking manually?


ArchLinux - make it simple & lightweight

Offline

#1330 2012-04-06 22:59:33

ron9
Member
From: Norway
Registered: 2011-02-02
Posts: 119

Re: systemd: Yet Another Init Replacement

falconindy wrote:

Even "broken" symlinks from enabled services in /etc/systemd/system will still continue to function

Yes I saw avahi-daemon.service unit was started from rc.d after it was removed from /lib/systemd. Reminds me to remove rc.d  q:-)

After dbus-core update to day the dbus unit files was recreated in /lib/systemd after I yesterday moved them to /usr/lib/systemd......

And dbus.socket and service files have no install section so I manually symlinked dbus.socket to multi-user.target.


lenovo w500 - huawei matebook 14 | archlinux | swaywm | foot | falkon

Offline

#1331 2012-04-07 01:04:26

bobwya
Member
Registered: 2012-01-09
Posts: 36

Re: systemd: Yet Another Init Replacement

Hi all,

Could someone please kindly test out this (now working!!) patch for the systemd bash-completion script.

In the most recent versions of bash-completion package (extra/bash-completion 1.99-2) and systemd (extra/systemd 44-5) this will now be found at:

/usr/share/bash-completion/completions/systemctl

This code is more robust than the original version and correctly handles unit names with escape sequences
e.g. CIFS mounted at "/mnt/user-server/TV Series/A..M" = systemd automount unit file mnt-user\x2dserver-TV\x20Series-A..M.automount
will break current bash-completion script version.

Also what is the upstream for this script: is it Fedora or is this an ARCH creation? I don't see the systemctl file in the upstream bash-completion package at Debain...

Bob

Offline

#1332 2012-04-07 02:55:14

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: systemd: Yet Another Init Replacement

bobwya wrote:

Hi all,

Could someone please kindly test out this (now working!!) patch for the systemd bash-completion script.

In the most recent versions of bash-completion package (extra/bash-completion 1.99-2) and systemd (extra/systemd 44-5) this will now be found at:

/usr/share/bash-completion/completions/systemctl

This code is more robust than the original version and correctly handles unit names with escape sequences
e.g. CIFS mounted at "/mnt/user-server/TV Series/A..M" = systemd automount unit file mnt-user\x2dserver-TV\x20Series-A..M.automount
will break current bash-completion script version.

Also what is the upstream for this script: is it Fedora or is this an ARCH creation? I don't see the systemctl file in the upstream bash-completion package at Debain...

Bob

bash completion for systemd is shipped with systemd (pacman -Qo would have told you this). It's not called systemctl as shipped from upstream. It's mangled (and symlinked) to cope with the way bash-completion 1.99 does on-demand loading of completions.

Offline

#1333 2012-04-07 08:46:23

bobwya
Member
Registered: 2012-01-09
Posts: 36

Re: systemd: Yet Another Init Replacement

falconindy wrote:

bash completion for systemd is shipped with systemd (pacman -Qo would have told you this). It's not called systemctl as shipped from upstream. It's mangled (and symlinked) to cope with the way bash-completion 1.99 does on-demand loading of completions.

Dude,

I'm well aware that systemctl is part of the systemd package. I was merely pointing out that the default location for the bash-completion systemd script has recently changed from /etc/bash_completion.d to /usr/share/bash-completion/completions - in the case the patch is useful to anyone or they won't to test it. I know all this because of the hours I spent pouring over BASH scripting pages (since I am not too familiar with the shell language) and sweat to produce a working fix. I guess I won't bother doing this in the future...  neutral

Meh,
Bob

Offline

#1334 2012-04-07 13:37:47

crabman
Member
Registered: 2010-08-12
Posts: 30

Re: systemd: Yet Another Init Replacement

I have added some information about systemd-journal in conjunction with classic logging daemons to the the systemd wiki page:
https://wiki.archlinux.org/index.php/Sy … md_Journal

I also found the information in the official arch-announcement regarding the correct socket to be incorrect. According to lennart, the correct socket for syslogs to listen on is /run/systemd/journal/syslog and not /run/systemd/journal/socket (see http://lwn.net/Articles/474968/)

However, the creation of this socket didnt work for me, so i had to alter syslog-ng's .service file as mentioned here: http://mailman.archlinux.org/pipermail/ … 25082.html

So my questions are:
Was that really an error in the announcement or did i just get something wrong?
Is this a bug in the syslog-ng package or am i wrong again?

crabman

Offline

#1335 2012-04-07 22:50:13

ron9
Member
From: Norway
Registered: 2011-02-02
Posts: 119

Re: systemd: Yet Another Init Replacement

When I do "enable" and then try to "start" a unit file I get:

[ronny@me ~]$ sudo systemctl start avahi-daemon.service
Failed to issue method call: Unit -.mount failed to load: No such file or directory. See system logs and 'systemctl status -.mount' for details.

And "status" of mount give this:

[ronny@me ~]$ sudo systemctl status -.mount
systemctl: invalid option -- '.'

Journal log:

Apr 07 23:28:32 me systemd[1]: Cannot add dependency job for unit local-fs.target, ignoring: Unit -.mount failed to load: No such file or directory. See system logs and 'systemctl status -.mount' for details.
Apr 07 23:28:32 me systemd[1]: Cannot add dependency job for unit proc-sys-fs-binfmt_misc.automount, ignoring: Unit -.mount failed to load: No such file or directory. See system logs and 'systemctl status -.mount
Apr 07 23:28:32 me systemd[1]: Cannot add dependency job for unit systemd-ask-password-console.path, ignoring: Unit -.mount failed to load: No such file or directory. See system logs and 'systemctl status -.mount

?


lenovo w500 - huawei matebook 14 | archlinux | swaywm | foot | falkon

Offline

#1336 2012-04-09 09:27:05

csn
Member
Registered: 2009-02-28
Posts: 10

Re: systemd: Yet Another Init Replacement

ron9 wrote:

When I do "enable" and then try to "start" a unit file I get:

[ronny@me ~]$ sudo systemctl start avahi-daemon.service
Failed to issue method call: Unit -.mount failed to load: No such file or directory. See system logs and 'systemctl status -.mount' for details.

And "status" of mount give this:

[ronny@me ~]$ sudo systemctl status -.mount
systemctl: invalid option -- '.'

Journal log:

Apr 07 23:28:32 me systemd[1]: Cannot add dependency job for unit local-fs.target, ignoring: Unit -.mount failed to load: No such file or directory. See system logs and 'systemctl status -.mount' for details.
Apr 07 23:28:32 me systemd[1]: Cannot add dependency job for unit proc-sys-fs-binfmt_misc.automount, ignoring: Unit -.mount failed to load: No such file or directory. See system logs and 'systemctl status -.mount
Apr 07 23:28:32 me systemd[1]: Cannot add dependency job for unit systemd-ask-password-console.path, ignoring: Unit -.mount failed to load: No such file or directory. See system logs and 'systemctl status -.mount

?

Hi,

Unfortunately `-.mount' (the root file system) cannot be referenced by that name from systemctl or from unit files since it doesn't follow the usual escaping rules of systemd: all the other mount units get their leading slash removed during name conversion, but since the root fs consists of only one slash it gets converted to a single dash instead. Otherwise it would consist of a suffix only which obviously can't work.

So, not knowing your specific (unit-)configuration my guesses would be:
a) you've tried to reference -.mount somewhere in a unit file which doesn't work (see above)
b) there might be something wrong with your root filesystem (e.g. it wasn't correctly remounted during startup or there's some kind of error in your /etc/fstab)

Maybe this can point you in the right direction.

Last edited by csn (2012-04-09 09:28:54)

Offline

#1337 2012-04-09 10:05:57

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: systemd: Yet Another Init Replacement

Yes, -.mount is indeed an invalid option. So tell systemctl that it isn't an option....

$ systemctl status -- -.mount
-.mount - /
	  Loaded: loaded
	  Active: active (mounted) since Sun, 08 Apr 2012 21:53:05 -0400; 8h ago
	   Where: /
	    What: /dev/sda2
	  CGroup: name=systemd:/system/-.mount

Seems to me like you're missing the "/" entry from /etc/fstab.

Offline

#1338 2012-04-09 12:34:52

Maki
Member
From: Skopje, Macedonia
Registered: 2007-10-16
Posts: 353
Website

Re: systemd: Yet Another Init Replacement

I have trouble setting up samba, both smbd.service and nmbd.service fail to start, while the wrapper around rc.d samba.service works just fine.

smbd.service - Samba SMB/CIFS server
          Loaded: loaded (/usr/lib/systemd/system/smbd.service; enabled)
          Active: failed (Result: exit-code) since Mon, 09 Apr 2012 14:26:39 +0200; 5min ago
         Process: 377 ExecStart=/usr/sbin/smbd -F (code=exited, status=1/FAILURE)
          CGroup: name=systemd:/system/smbd.service 
nmbd.service - Samba NetBIOS name server
          Loaded: loaded (/usr/lib/systemd/system/nmbd.service; enabled)
          Active: failed (Result: exit-code) since Mon, 09 Apr 2012 14:26:40 +0200; 7min ago
         Process: 378 ExecStart=/usr/sbin/nmbd -F (code=exited, status=1/FAILURE)
          CGroup: name=systemd:/system/nmbd.service 

Fixed the problem, the folder /run/samba didn't exist, thanks falconindy, also chek this thread https://github.com/falconindy/systemd-a … /issues/58

Last edited by Maki (2012-04-09 15:17:34)


If it ain't broke, broke it then fix it.

Offline

#1339 2012-04-09 13:18:42

ron9
Member
From: Norway
Registered: 2011-02-02
Posts: 119

Re: systemd: Yet Another Init Replacement

My laptop starts fine with no errors, and has worked perfectly with native systemd for months.

-.mount        loaded active mounted       /
boot.mount     loaded active mounted       /boot

But lately when I do systemctl enable "any" unit file, mount gives an error message, but it is still mounted.

-.mount        error  active mounted       /
boot.mount     loaded active mounted       /boot

Thanks to falconindy for showing systemctl who's the boss.  smile

[ronny@me ~]$ systemctl status -- -.mount
-.mount - /
	  Loaded: error (Reason: No such file or directory)
	  Active: active (mounted) since Mon, 09 Apr 2012 08:04:11 +0000; 5h 29min ago
	   Where: /
	    What: /dev/sda3
	  CGroup: name=systemd:/system/-.mount

I have not made any changes to the fstab in the past. So what may have been wrong with my system...

# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs nodev,nosuid 0 0
LABEL=boot /boot ext4 defaults,noatime,noauto,comment=systemd.automount  0 2
LABEL=arch / ext4 defaults,noatime 0 1
LABEL=mydata /home/ronny/mydata ntfs-3g noatime,uid=1000,gid=users,noauto,comment=systemd.automount 0 0

@csn It was silly of me, what I meant was that the output from systemctl wasn't correct.

See system logs and 'systemctl status -.mount' for details.

This output should be corrected in systemd.


lenovo w500 - huawei matebook 14 | archlinux | swaywm | foot | falkon

Offline

#1340 2012-04-09 16:19:59

unikum
Member
From: Russia
Registered: 2010-09-04
Posts: 151
Website

Re: systemd: Yet Another Init Replacement

`Hi.

Tell me please what services I should start for nfs server and nfs client.

UPD: seems in this thread should not expect help. Answer to myself:
For server

rpcbind.service rpc-mountd.service exportfs.service

For client

rpcbind.service rpc-statd.service

Last edited by unikum (2012-04-11 08:21:47)

Offline

#1341 2012-04-11 00:41:58

mwc
Member
From: London, Canada
Registered: 2006-03-17
Posts: 17

Re: systemd: Yet Another Init Replacement

Updated systemd-git today and audio stopped working after reboot due to a lack of ACLs on /dev/snd/*.

loginctl reports zero sessions and systemd-cgls shows all user processes in the gdm.service control group.

This was traced to an issue with the pam_systemd.so module. From the /var/log/gdm/:0-slave.log file:

gdm-password][1837]: PAM unable to dlopen(/lib/security/pam_systemd.so): /lib/security/pam_systemd.so: undefined symbol: audit_loginuid_from_pid
gdm-password][1837]: PAM adding faulty module: /lib/security/pam_systemd.so
gdm-password][1837]: pam_unix(gdm-password:auth): authentication failure; logname= uid=0 euid=0 tty=:0 ruser= rhost=  user=****

Any ideas besides watching gitweb?

Offline

#1342 2012-04-11 00:47:57

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

Re: systemd: Yet Another Init Replacement

@falconindy - naive question, but I couldn't answer it on the systemd wiki page: when I restart or shutdown the box via the xfce4 GUI, is it calling the proper "systemctl command" to gracefully stop all running daemons?


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

Offline

#1343 2012-04-11 13:14:55

king.flasher.dave
Member
From: Berlin
Registered: 2008-11-25
Posts: 140
Website

Re: systemd: Yet Another Init Replacement

android_808 wrote:

After the recent update, all symlinks in /etc/ have been removed for the graphical.target.wants.  GDM readded fine but network manger doesn't seem to be there. I can't find any trace under /usr/lib. Trying to start nm-applet results in:

WARNING **: Failed to register as an agent: (32) Unit dbus-org.freedesktop.NetworkManager.service failed to load: No such file or directory. See system logs and 'systemctl status dbus-org.freedesktop.NetworkManager.service' for details.

Edit: Solved.  Managed to get it to enable. Not quite sure what went wrong there.

How did you do that? my network.service still fails on startup. I have tried reenabling and whatnot, so far all I can do is manually restart the service after login to make it work... quite annoying hmm


Speak when you are angry and you will make the best speech you'll ever regret.

Offline

#1344 2012-04-11 23:26:14

Hspasta
Member
Registered: 2011-12-24
Posts: 189
Website

Re: systemd: Yet Another Init Replacement

Does systemd mount my /media with tmpfs? Also, what are these run types that are being used  for /var/lock and /var/run? I used to have tmpfs for them and used realized its changed.

Offline

#1345 2012-04-12 00:29:14

tomegun
Developer
From: France
Registered: 2010-05-28
Posts: 661

Re: systemd: Yet Another Init Replacement

Hspasta wrote:

Does systemd mount my /media with tmpfs? Also, what are these run types that are being used  for /var/lock and /var/run? I used to have tmpfs for them and used realized its changed.

systemd mounts a tmpfs on /media. However, this will no longer be the case as of the next release (as udisks2 does not use /media the folder can mostly be ignorde).

systemd prefers /var/run and /var/lock to be symlinks to /run (which is a tmpfs) and /run/lock, respectively. If this is not the case, they will be bindmounted instead. In both cases the contents of /var/run and /run will be identical.

Offline

#1346 2012-04-13 16:35:53

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

Re: systemd: Yet Another Init Replacement

I can't get my encrypted swap device to work with systemd. At first it asked me for a passphrase for the swap device on boot which it obviously shouldn't do. I fixed this by using /dev/urandom instead of the SWAP keyword in /etc/crypttab.
But I still can't boot. Now it just sits there with a blinking cursor and does nothing and I all I can do is reboot with Ctrl+Alt+Del.
The last messages are:

[...]
Starting /boot...
Started /boot [OK]
Starting Recreate Volatile Files and Directories...
Starting Load Random Seed...
Started Load Random Seed [OK]
Starting Cryptography Setup for swap...
Started Recreate Volatile Files and Directories [OK]
Started Cryptography Setup for swap [OK]

/etc/crypttab

swap		/dev/sda2		/dev/urandom		-c aes-cbc-essiv:sha256 -s 256

/etc/fstab

tmpfs			/tmp	tmpfs	nodev,nosuid	0	0
/dev/sda1		/boot	ext4	defaults	0	1
/dev/mapper/swap	swap	swap	defaults	0	0
/dev/mapper/muscrypt	/	ext4	defaults	0	1

I boot with:

root=/dev/mapper/muscrypt cryptdevice=/dev/sda3:muscrypt ro verbose init=/usr/lib/systemd/systemd

If I remove /dev/mapper/swap from /etc/fstab I can boot just fine.

edit:
nevermind, this fixed it:

swap		/dev/sda2		/dev/urandom		swap

Last edited by 65kid (2012-04-13 18:57:35)

Offline

#1347 2012-04-14 11:06:04

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

Re: systemd: Yet Another Init Replacement

ajk wrote:

Did anyone try systemd allready on their Arch Linux system? I just build v4 but the network still doesn't come up by default.. Anyone has a clue on how to fix this?

You read the wiki?


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

Offline

#1348 2012-04-15 12:38:35

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

Re: systemd: Yet Another Init Replacement

I'm a little confused about the automount option in /etc/fstab. Using noauto,comment=systemd.automount has been working fine for me. Now in the wiki and the systemd.mount man page it says to use x-systemd.automount instead. This didnt work at all, systemd didn't create an automount unit. Looking at the source the option actually seems to be x-systemd-automount (notice the -). So it seems like the man page is wrong here.

But using noauto,x-systemd-automount seems to be broken as well. The automount unit is created but accessing the mount point fails.

$ ls -l /boot
ls: cannot access /boot: No such device
$ systemctl status boot.mount
boot.mount - /boot
	  Loaded: loaded
	  Active: inactive (dead)
	   Where: /boot
	    What: /dev/sda1
	  CGroup: name=systemd:/system/boot.mount

Apr 15 14:27:36 mus mount[310]: mount: wrong fs type, bad option, bad superblock on /dev/sda1,
Apr 15 14:27:36 mus mount[310]: missing codepage or helper program, or other error

When I change back to noauto,comment=systemd.automount and reboot, everything works fine. I can also confirm the same behaviour on my RAID device.

Offline

#1349 2012-04-15 19:22:03

algorythm
Member
From: /usr/share/zoneinfo/Europe/FIN
Registered: 2009-07-17
Posts: 181

Re: systemd: Yet Another Init Replacement

Nice. With readahead my boot speeds up by 6 seconds (from GRUB2 to desktop with all startup applications open), meaning 24s became 18.

Otherwise it's just as fast as the default init, despite its "aggressive parallelization capabilities" and all that shit, which was a bit disappointing.


“Talent you can bloom. Instinct you can polish.”  — Haikyuu!! (adapted)
“If everybody thought alike, no one would be thinking very much.”  — Walter Lippmann (adapted)
“The important thing is to be able, at any moment, to sacrifice what we are for what we could become.”  — Charles Dubois

Offline

#1350 2012-04-15 19:52:56

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

Re: systemd: Yet Another Init Replacement

algorythm wrote:

Otherwise it's just as fast as the default init, despite its "aggressive parallelization capabilities" and all that shit, which was a bit disappointing.

Faster on an SSD.

Last edited by graysky (2012-04-15 19:53:14)


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

Offline

Board footer

Powered by FluxBB