You are not logged in.
I've found a weird thing on my native systemd config.
I dont have initscripts-systemd installed. I thought i didnt have initscripts installed but actually i did, so i removed it cause i thought i was not using it. Now comes the weird thing. When i remove initscripts all the locale variables are set to POSIX (except LANG and LC_ALL, which are not set). After reinstalling initscripts everything went back to normal, and variables are set as indicated in locale.conf
Is systemd using some script of initscripts to set locale variables?
Last edited by Viper_Scull (2011-12-31 14:05:50)
Athlon II X4 620 + Gigabyte 785GPM-UD2H + 4GB DDR3 + SSD OCZ Vertex2 60GB
Archlinux x86_64 + Openbox
Offline
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Online
I dont see your point. Can you elaborate?
Athlon II X4 620 + Gigabyte 785GPM-UD2H + 4GB DDR3 + SSD OCZ Vertex2 60GB
Archlinux x86_64 + Openbox
Offline
Cups does not support socket activation (yet). The socket unit is not in systemd-arch-units as far as I can tell.
According to Lennart's blog "systemd for Developers" cups is ready for socket activation.
# http://0pointer.de/blog/projects/socket … tion2.html
I used the cups socket and service unit from Lennart's blog, and it works as expected.
Problem is that cups web interface timeout with error: Unable to bind socket for address 0.0.0.0:631 - Address already in use.
Last edited by ron9 (2011-12-31 14:47:32)
lenovo w500 - huawei matebook 14 | archlinux | swaywm | foot | falkon
Offline
When i remove initscripts all the locale variables are set to POSIX (except LANG and LC_ALL, which are not set). After reinstalling initscripts everything went back to normal, and variables are set as indicated in locale.conf
Systemd will set the locale just fine without initscripts installed. However, if something (agetty/login?) unsets it, having initscripts around will help as /etc/profile.d/locale.sh (owned by initscripts) will set the locale vars based on /etc/locale.conf.
Offline
According to Lennart's blog "systemd for Developers" cups is ready for socket activation.
# http://0pointer.de/blog/projects/socket … tion2.html
I used the cups socket and service unit from Lennart's blog, and it works as expected.
Problem is that cups web interface timeout with error: Unable to bind socket for address 0.0.0.0:631 - Address already in use.
.
What do you mean by "works as expected"?
Did you apply Lennart's patch to cups?
The error you are getting indicates that systemd is listening on the socket and passes it to cups, but cups is unable to accept it and tries to open it from scratch.
Offline
What do you mean by "works as expected"?
After startup cups.socket is listening and start cups.service first when it is triggered.
Did you apply Lennart's patch to cups?
I thought the patch was implemented since the blog is from the July 5
The error you are getting indicates that systemd is listening on the socket and passes it to cups, but cups is unable to accept it and tries to open it from scratch.
OK. Then it is not working as expected :-(
I dont now how to add a patch so I have to wait until it is ready...
.
Last edited by ron9 (2011-12-31 15:22:39)
lenovo w500 - huawei matebook 14 | archlinux | swaywm | foot | falkon
Offline
tomegun wrote:What do you mean by "works as expected"?
After startup cups.socket is listening and start cups.service first when it is triggered.
Ah, yeah. That will always happen no matter what the service is. It does not mean that the service is able to use the socket that is passed to it.
Did you apply Lennart's patch to cups?
I thought the patch was implemented since the blog is from the July 5
Not as far as I know. I think the patch as described in the blogpost would probably not go in as it required some files to be copied into the cups sources. There is now a shared lib that might make it more palatable.
Offline
The cups/systemd bug report (with patches): http://cups.org/str.php?L3917
Offline
Hello,
I don´t know if this was already discussed here but I will post my experience because it could be useful to somebody. While I was trying to enable the force feedback of my xbox 360 controller I found out that I hadn't write permission on the devices under /dev/input/event*. After much time I decided to boot with systemd disabled and the problem was fixed. As this is not a real solution I googled a little and found out the source of the problem. I had to add the line :
"session optional pam_systemd.so"
to the file "/etc/pam.d/kde-np".
Now I see that this instruction is on systemd wiki page, but maybe it would be good to mention there that the above line MUST be added to have write access to joysticks, what is necessary to enable force feedback.
Last edited by wwmm (2012-01-04 23:09:33)
Offline
I found out that I hadn't write permission on the devices under /dev/input/event*. [...] I googled a little and found out the source of the problem. I had to add the line :
"session optional pam_systemd.so"
to the file "/etc/pam.d/kde-np".
Now I see that this instruction is on systemd wiki page, but maybe it would be good to mention there that the above line MUST be added to have write access to joysticks, what is necessary to enable force feedback.
This line needs to be added to kde/gdm/'whatever controls your session' in order to get permissions on any device nodes (ACL). Consolekit disables itself when systemd is running, so systemd needs to take over this job.
Offline
I've been struggling with getting systemd functioning in a bit of what you might call a niche setup. I have a Drobo with two LUNs that I'm currently using, the third isn't in use:
# drobom status
/dev/sdb:/dev/sdc:/dev/sdd - Drobo disk pack 66% full - ([], 0)
For some reason, using fstab works fine at boot:
/dev/sdb1 /mnt/drobo0 ext3 defaults,noatime,nodiratime,comment=systemd.mount 0 0
/dev/sdc1 /mnt/drobo1 ext3 defaults,noatime,nodiratime,comment=systemd.mount 0 0
Unfortuneately, this doesn't work at boot:
# cat /lib/systemd/system/mnt-drobo0.mount
[Unit]
Description=/mnt/drobo0
Requires=systemd-stdout-syslog-bridge.socket -.mount
Conflicts=umount.target
Before=umount.target local-fs.target raid.mount
After=systemd-stdout-syslog-bridge.socket local-fs-pre.target -.mount
[Mount]
Where=/mnt/drobo0
What=/dev/sdb1
Options=rw,noatime,nodiratime,rw,errors=continue,barrier=1,data=ordered
Type=ext3
# systemctl status mnt-drobo0.mount
mnt-drobo0.mount - /mnt/drobo0
Loaded: loaded (/lib/systemd/system/mnt-drobo0.mount; static)
Active: inactive (dead)
Where: /mnt/drobo0
What: /dev/sdb1
CGroup: name=systemd:/system/mnt-drobo0.mount
But, after booting:
# systemctl start mnt-drobo0.mount
# systemctl status mnt-drobo0.mount
mnt-drobo0.mount - /mnt/drobo0
Loaded: loaded (/lib/systemd/system/mnt-drobo0.mount; static)
Active: active (mounted) since Thu, 05 Jan 2012 16:38:04 -0500; 7s ago
Where: /mnt/drobo0
What: /dev/sdb1
Process: 1226 ExecMount=/bin/mount /dev/sdb1 /mnt/drobo0 -t ext3 -o rw,noatime,nodiratime,rw,errors=continue,barrier=1,data=ordered (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/mnt-drobo0.mount
The only things I can think of are either I have configured this wrong, or systemd trys to mount it before the Drobo has initalized when using the unit files. Does anyone have any ideas about this? Thanks.
Offline
I recommend that you put custom services/mount/whatever files in /etc/systemd/system, rather than /lib/systemd/system.
Also, have you enabled mnt-drobo0.mount (et al)? The status output suggests to me that you haven't.
# systemctl enable mnt-drobo0.mount
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Online
I recommend that you put custom services/mount/whatever files in /etc/systemd/system, rather than /lib/systemd/system.
Also, have you enabled mnt-drobo0.mount (et al)? The status output suggests to me that you haven't.
# systemctl enable mnt-drobo0.mount
I'll go ahead and get them moved. I should have really been keeping them there from the beginning.
Should I have an [Install] section in these?
# systemctl is-enabled mnt-drobo0.mount
static
# systemctl enable mnt-drobo0.mount
Warning: unit files do not carry install information. No operation executed.
Offline
You can do if you want, none of the standard .mount files have one for some reason, but the man pages say that it's fine for any systemd unit files to have one.
Alternatively, you could just manually create a symlink to the .mount files in /etc/systemd/system/local-fs.target.wants.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Online
After a reboot:
# systemctl status mnt-drobo0.mount
mnt-drobo0.mount - /mnt/drobo0
Loaded: loaded (/etc/systemd/system/mnt-drobo0.mount; enabled)
Active: failed since Fri, 06 Jan 2012 14:14:34 -0500; 1min 5s ago
Where: /mnt/drobo0
What: /dev/sdb1
Process: 462 ExecMount=/bin/mount /dev/sdb1 /mnt/drobo0 -t ext3 -o rw,noatime,nodiratime,rw,errors=continue,barrier=1,data=ordered (code=exited, status=32)
CGroup: name=systemd:/system/mnt-drobo0.mount
Then, I tried a reboot using systemctl, and it worked. Maybe that's the trick. Now, to see if I can get my AuFS mount working on top of it.
Offline
If you frequently find that the mount fails, you might want to add drobo.service (I'm guessing that's what it's called, not in a position to check) to the mount's "After" list; then it won't try to mount the filesystems before the service has initialized.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Online
The only things I can think of are either I have configured this wrong, or systemd trys to mount it before the Drobo has initalized when using the unit files.
I don't now your usercase, but have you consider automount. Mount will then take place first when you trigger your mountpoint drobo0.
http://0pointer.de/public/systemd-man/systemd.automount.html
I automount boot, home and a windows homeserver and spare some boottime. I have tried to make unit files for automounting, but with no luck so far.
Comment=systemd.automount in fstab works fine.
lenovo w500 - huawei matebook 14 | archlinux | swaywm | foot | falkon
Offline
Viper_Scull wrote:Console System Startup Loggin status is failed:
console-kit-log-system-start.service - Console System Startup Logging Loaded: loaded (/lib/systemd/system/console-kit-log-system-start.service) Active: failed since Mon, 20 Jun 2011 15:19:11 +0200; 7min ago Process: 302 ExecStart=/usr/sbin/ck-log-system-start (code=exited, status=1/FAILURE) CGroup: name=systemd:/system/console-kit-log-system-start.service
However if i restart the service:
console-kit-log-system-start.service - Console System Startup Logging Loaded: loaded (/lib/systemd/system/console-kit-log-system-start.service) Active: active (exited) since Mon, 20 Jun 2011 15:27:57 +0200; 1s ago Process: 1173 ExecStart=/usr/sbin/ck-log-system-start (code=exited, status=0/SUCCESS) CGroup: name=systemd:/system/console-kit-log-system-start.service
Could it be anything related to the dependencies?
[Unit] Description=Console System Startup Logging DefaultDependencies=no After=sysinit.target Before=shutdown.target [Service] Type=oneshot ExecStart=/usr/sbin/ck-log-system-start RemainAfterExit=yes
Any comments someone?
I think this could be the problem but i'm not sure. I have /var/log to be mounted as tmpfs. Maybe the service is called before that happens. What can i add to the field After in the service unit to make it wait for /var/log to be mounted in RAM?
Hi,
I am having the exact same problem (and I also mounted /var/log with tmpfs). Have you found a remedy to this problem? I am fairly new to systemd, and so far the only thing I have tried was to modify the "After=" field to also include local_fs.service. That did not do the trick, as far as I can tell.
Thanks!
Offline
Hi,
I am having the exact same problem (and I also mounted /var/log with tmpfs). Have you found a remedy to this problem? I am fairly new to systemd, and so far the only thing I have tried was to modify the "After=" field to also include local_fs.service. That did not do the trick, as far as I can tell.
Thanks!
I haven't found any solution yet. Still failing.
Console-kit-log-system-start.service has to start after sysinit.target which is reached after local-fs.target so indeed that change shouldn't affect on anything.
Dmesg prints
<28>systemd-tmpfiles[277]: Two or more conflicting lines for /tmp configured, ignoring.
<28>systemd-tmpfiles[277]: Two or more conflicting lines for /tmp/.X11-unix configured, ignoring.
<28>systemd-tmpfiles[277]: Two or more conflicting lines for /tmp/.ICE-unix configured, ignoring.
<28>systemd-tmpfiles[277]: Two or more conflicting lines for /tmp/.XIM-unix configured, ignoring.
<28>systemd-tmpfiles[277]: Two or more conflicting lines for /tmp/.font-unix configured, ignoring.
<28>systemd-tmpfiles[277]: Two or more conflicting lines for /tmp/.Test-unix configured, ignoring.
<30>ck-log-system-start[281]: ** (process:281): WARNING **: Couldn't create log file /var/log/ConsoleKit/history (No such file or directory
<29>systemd[1]: console-kit-log-system-start.service: main process exited, code=exited, status=1
<29>systemd[1]: Unit console-kit-log-system-start.service entered failed state.
Athlon II X4 620 + Gigabyte 785GPM-UD2H + 4GB DDR3 + SSD OCZ Vertex2 60GB
Archlinux x86_64 + Openbox
Offline
ImNtReal wrote:The only things I can think of are either I have configured this wrong, or systemd trys to mount it before the Drobo has initalized when using the unit files.
I don't now your usercase, but have you consider automount. Mount will then take place first when you trigger your mountpoint drobo0.
The issue with automount is I also want to mount the two LUNs into one location using AuFS. This location includes /home. I think there may still be some timing issues, so I may need to come up with a way to detect that it is initialized, and hold the mounting until that point.
Offline
I've been getting some slightly annoying messages while booting. It doesn't cause any problems, but I still wonder why these errors are showing up.
[ 1.771982] EXT4-fs (sda5): couldn't mount as ext2 due to feature incompatibilities
[ 1.727911] EXT4-fs (sda5): couldn't mount as ext3 due to feature incompatibilities
I haven't been able to find anything on google yet, any ideas what's going on?
Offline
No, I have sda5 in there and explicitly listed as an ext4 partition. Here's the relevant line:
/dev/sda5 / ext4 defaults,noatime 0 1
Offline
Maybe this could help:
http://www.linuxquestions.org/questions … fs-797354/
lenovo w500 - huawei matebook 14 | archlinux | swaywm | foot | falkon
Offline