Re: [systemd-devel] Testing if timesyncd is synced

2019-02-20 Thread Paul D. DeRocco
rg.freedesktop.timedate1.NTPSynchronized property on > /org/freedesktop/timedate1. That looks pretty simple. I'll try it out. This is my own Yocto-based embedded system with a recent kernel, so there are no issues of compatibility, as others warned about. -- Ciao,

[systemd-devel] Testing if timesyncd is synced

2019-02-20 Thread Paul D. DeRocco
What's the simplest way to test if systemd-timesyncd is currently synced to the network, from within an embedded application (running with root privileges)? Is there some single dbus transaction that will give me this answer? -- Ciao, Paul D. DeRocco

[systemd-devel] Using udev to notify application of device insertion/removal

2018-07-02 Thread Paul D. DeRocco
e '/dev/snd/midi' ACTION=remove DEVLINKS=/dev/snd/midi DEVNAME=/dev/snd/midiC1D0 DEVPATH=/devices/pci:00/:00:1d.7/usb1/1-8/1-8.3/1-8.3:1.0/sound/ca rd1/midiC1D0 MAJOR=116 MINOR=40 SUBSYSTEM=sound USEC_INITIALIZED=4019498530 run: '/bin/touch /media/sda1/share/devchg' U

Re: [systemd-devel] systemd vs udev automount

2017-10-09 Thread Paul D. DeRocco
> From: Mantas Mikulenas [mailto:graw...@gmail.com] > > Just configure "/dev/disk/by-label/FOOBAR" (or possibly > "LABEL=FOOBAR") as the mount source. Duh. I never noticed LABEL in the fstab man page. Pretty simple. Thanks. -- Ciao,

Re: [systemd-devel] systemd vs udev automount

2017-10-08 Thread Paul D. DeRocco
unit to specify a partition by some sttributes, e.g., a FAT file system with a volume name of FOOBAR? Or is there a way to do this directly with a udev rule? -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___

[systemd-devel] systemd vs udev automount

2017-10-08 Thread Paul D. DeRocco
tirely? (Or are the autonet rules important?) My ultimate goal is to have this additional partition on my main disk to be automounted as early in the boot process as possible. I don't need (or want) removable drives to be automounted anyway. -- Ciao, Paul D. DeRocco Paul

[systemd-devel] Questions about nmb.service

2017-08-05 Thread Paul D. DeRocco
there something I can do to change the startup order until the ethernet device is ready, or is this just normal? 2) Why does systemd think it doesn't own the nmbd process, and should I do something about that, or is that normal? -- Ciao, Paul D. DeRocco Paulmai

Re: [systemd-devel] Serial getty on USB dongle insertion

2017-07-13 Thread Paul D. DeRocco
=dev-ttyUSB2.device" (or whatever name of your device unit is) > so systemd stops it when dongle is unplugged and does not attempt to > restart. Works like a charm. Thanks. -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com _

[systemd-devel] Serial getty on USB dongle insertion

2017-07-12 Thread Paul D. DeRocco
estart if I plug the dongle in again. Is there a way of configuring the service to start every time the dongle is inserted, whether I logged out before yanking the dongle or not? Or does this require some special udev rule? -- Ciao, Paul D. DeRocco Paulmailto:pd

Re: [systemd-devel] Trying to come up with udev rule for USB geographic naming

2017-07-12 Thread Paul D. DeRocco
> From: Andrei Borzenkov > > Please copy-paste actual command invocation and its output. No need. I had used = instead of == on the DRIVERS. Works fine now. Thanks for your assistance. -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.n

Re: [systemd-devel] Trying to come up with udev rule for USB geographic naming

2017-07-11 Thread Paul D. DeRocco
ith "udevadm test" to verify. I tried the following rule: ACTION=="add", KERNEL=="midiC*", DRIVERS=="snd-usb-audio", SYMLINK+="snd/midi%b" and "udevadm test" complains about an "invalid DRIVERS option"

Re: [systemd-devel] Trying to come up with udev rule for USB geographic naming

2017-07-11 Thread Paul D. DeRocco
directories, but apparently there's also one in /lib that's full of rules I didn't see. -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] Trying to come up with udev rule for USB geographic naming

2017-07-10 Thread Paul D. DeRocco
name in the parent? But it not only didn't create a "midi1-1.2:1.0", it didn't create a "midimidiC1D0" either, so it doesn't look like the rule matched at all. There is already a symlink "/dev/snd/by-path/platform-3f98.usb-usb-0:1.2:1.0", b

Re: [systemd-devel] Restarting nmb.service from within a program

2015-11-03 Thread Paul D. DeRocco
correct way to do it. -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] Restarting nmb.service from within a program

2015-11-03 Thread Paul D. DeRocco
this from within a program? There must be some way, since systemctl does it. -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org

[systemd-devel] What's mounting this partition?

2015-09-26 Thread Paul D. DeRocco
it, is there a way to control what mount options it uses for the root? I'd like to use noatime, so that it doesn't abuse my flash drive needlessly. -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___

Re: [systemd-devel] How to automount

2015-09-21 Thread Paul D. DeRocco
unmount explicitly around each user-requested operation. -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] How to automount

2015-09-21 Thread Paul D. DeRocco
my system, the only accesses made to this external flash drive are in response to a user command. So the simpler solution is just to have my application mount and unmount the drive, instead of trying to get the operating system to do it. -- Ciao, Paul D. DeRocc

[systemd-devel] How to automount

2015-09-19 Thread Paul D. DeRocco
up, and it should be automagically changed to /dev/sdb1 when I plug something in. How do I get these two things to happen? -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ systemd-devel mailin

[systemd-devel] WiFi device starting a service

2013-09-28 Thread Paul D. DeRocco
ut I can't figure out how. So what's the right way to do this? Is there a man page specifically for this situation? -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] Starting touchscreen cal after touchscreen device starts

2013-08-30 Thread Paul D. DeRocco
is launched after this device comes online? -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] Using busybox-udhcpc

2013-07-30 Thread Paul D. DeRocco
c, but if I knew how dhclient is invoked by the networking system, perhaps that would apply to busybox-udhcpc as well. Any pointers would be greatly appreciated. It's the last thing I need to fix (famous last words) before I have fully functioning networking. -- Ciao, Pau

Re: [systemd-devel] Quick ? about ExecStartPre and Restart

2013-07-04 Thread Paul D. DeRocco
> From: Jan Alexander Steffens [mailto:jan.steff...@gmail.com] > > On Thu, Jul 4, 2013 at 2:04 AM, Paul D. DeRocco > wrote: > > 1) I want my service executable to be copied from flash to > > RAM disk, and > > then executed from there, so that the original can be

Re: [systemd-devel] Quick ? about ExecStartPre and Restart

2013-07-03 Thread Paul D. DeRocco
s, and a nonzero exit code if it ever wants to restart itself, and then use Restart=on-failure. Does that sound sensible? -- Ciao, Paul D. DeRocco Paulmailto:pdero...@ix.netcom.com ___ systemd-devel mailing list systemd-de

Re: [systemd-devel] Quick ? about ExecStartPre and Restart

2013-07-03 Thread Paul D. DeRocco
> From: Reindl Harald [mailto:h.rei...@thelounge.net] > > Am 04.07.2013 00:38, schrieb Paul D. DeRocco: > > I'm new to systemd, and I'm confused about something. The > > docs include the > > following sentence under the Restart directive: > > &

[systemd-devel] Quick ? about ExecStartPre and Restart

2013-07-03 Thread Paul D. DeRocco
stake in the docs? If it's not a mistake, how do I configure it so that it won't restart when the command launched by ExecStartPre terminates with a 0 exit code, but will restart if the actual service started by ExecStart terminates with a 0 exit code? Or is there another preferable wa