[systemd-devel] masking --global, but allowing --user

2021-09-17 Thread Matt Zagrabelny
Greetings, I believe the Debian package of mpd enables a --global .service and .socket unit for the mpd daemon/service. I'd like to mask that and install it just to a single --user service. I've tried that: sudo systemctl --global mask mpd.service sudo systemctl --global mask mpd.socket and

Re: [systemd-devel] masking --global, but allowing --user

2021-09-17 Thread Matt Zagrabelny
Hi! Thanks for the reply. On Fri, Sep 17, 2021 at 7:57 PM Michael Chapman wrote: > > On Sat, 18 Sep 2021, Matt Zagrabelny wrote: > > Greetings, > > > > I believe the Debian package of mpd enables a --global .service and > > .socket unit for the mpd daemon/ser

[systemd-devel] help with sockets and services and inetd-like workflows

2021-03-21 Thread Matt Zagrabelny
Greetings, I'm running systemd 241-7~deb10u6, Debian 10 (Buster). I am attempting to have an inetd like service run, where systemd listens on a port (TCP 9000) and passes the data to a python3 script's STDIN. Here are my unit files: ==> /etc/systemd/system/cdr-adjunct@.service <== [Unit]

[systemd-devel] systemd-networkd and interface names

2020-08-10 Thread Matt Zagrabelny
Greetings, I am using systemd-networkd and I am wondering how/why the interface names get chosen. Scenario: I am expecting an interface name to be enp1s0. Instead I get eth1. It appears that eth1 is being referenced in things like: /etc/default/isc-dhcp-server /etc/default/minissdpd If I

Re: [systemd-devel] user service conflict and confusion

2020-04-10 Thread Matt Zagrabelny
On Fri, Apr 10, 2020 at 1:32 PM Zbigniew Jędrzejewski-Szmek < zbys...@in.waw.pl> wrote: > On Fri, Apr 10, 2020 at 10:53:36AM -0500, Matt Zagrabelny wrote: > > Greetings, > > > > I am hitting a confusing scenario with my system. I am running 245.4-2 > > (Debian). &

Re: [systemd-devel] user service conflict and confusion

2020-04-10 Thread Matt Zagrabelny
On Fri, Apr 10, 2020 at 12:16 PM Michael Biebl wrote: > Am Fr., 10. Apr. 2020 um 17:59 Uhr schrieb Matt Zagrabelny < > mzagr...@d.umn.edu>: > > > > Greetings, > > > > I am hitting a confusing scenario with my system. I am running 245.4-2 > (Debian). &g

[systemd-devel] user service conflict and confusion

2020-04-10 Thread Matt Zagrabelny
Greetings, I am hitting a confusing scenario with my system. I am running 245.4-2 (Debian). I have a user service, mpd, which is failing to start. It is enabled: $ systemctl --user is-enabled mpd enabled And now that I look for the enabled unit within the filesystem, I don't see it. I'm

Re: [systemd-devel] AF_INET socket ownership

2020-03-04 Thread Matt Zagrabelny
Hey Mantas, Thanks for the reply. On Wed, Mar 4, 2020 at 12:06 PM Mantas Mikulėnas wrote: > On Wed, Mar 4, 2020 at 7:26 PM Matt Zagrabelny wrote: > >> Greetings, >> >> Do folks use non-root users to own AF_INET sockets >> > > This bit *really* doesn't make

[systemd-devel] AF_INET socket ownership

2020-03-04 Thread Matt Zagrabelny
Greetings, Do folks use non-root users to own AF_INET sockets to limit root exposure in their systemd socket units? Is it even a sensible question? Thanks for any commentary! FWIW, here is my .socket and .service units: ==> /etc/systemd/system/cdr-adjunct@.service <== [Unit] Description=Call

Re: [systemd-devel] devilspie2 user service issues

2019-08-06 Thread Matt Zagrabelny
Thanks for the reply, Mantas! On Tue, Aug 6, 2019 at 2:24 PM Mantas Mikulėnas wrote: > On Tue, Aug 6, 2019 at 10:08 PM Matt Zagrabelny > wrote: > >> Greetings, >> >> I am trying to write a service file for a tool called devilspie2. >> >> % systemctl

[systemd-devel] devilspie2 user service issues

2019-08-06 Thread Matt Zagrabelny
Greetings, I am trying to write a service file for a tool called devilspie2. % systemctl --user cat devilspie.service # /home/mzagrabe/.config/systemd/user/devilspie.service [Unit] Description=devilspie [Service] ExecStart=/usr/bin/devilspie2 [Install] WantedBy=default.target which I enabled

Re: [systemd-devel] user service not starting on login

2019-05-12 Thread Matt Zagrabelny
Hey Mantas and others, On Thu, May 9, 2019 at 11:57 PM Mantas Mikulėnas wrote: > On Fri, May 10, 2019 at 5:22 AM Matt Zagrabelny > wrote: > >> Greetings, >> >> I am attempting to get a user service running on my session login. >> >> The u

[systemd-devel] user service not starting on login

2019-05-09 Thread Matt Zagrabelny
Greetings, I am attempting to get a user service running on my session login. The unit is called jack. I've enabled it via: $ systemctl --user enable jack When I boot up the system and log in I see that it is inactive. I can start it manually without issue: $ systemctl --user status jack ●

Re: [systemd-devel] systemd-networkd bring interface up without link

2019-05-07 Thread Matt Zagrabelny
On Mon, May 6, 2019 at 10:56 PM Andrei Borzenkov wrote: > 07.05.2019 4:22, Matt Zagrabelny пишет: > > > Is there a way to have systemd-network assign addressing to an interface > > without the link being up? > > > > man systemd.network > >ConfigureWi

[systemd-devel] systemd-networkd bring interface up without link

2019-05-06 Thread Matt Zagrabelny
Greetings, I'm using Debian Buster with systemd 241-3. I have a computer (server) that is running isc-dhcpd and I have a hardwired interface with static addressing on the computer: $ cat /etc/systemd/network/eth-router.network [Match] MACAddress=00:01:c0:1e:25:dd [Network]

Re: [systemd-devel] unable to fully halt system

2019-05-06 Thread Matt Zagrabelny
On Wed, May 1, 2019 at 11:02 PM Mantas Mikulėnas wrote: > On Thu, May 2, 2019, 04:19 Matt Zagrabelny wrote: > >> Greetings, >> >> I'm hitting an issue and I'm not quite sure the best place to debug it. >> >> I've got a fresh install of Debian Buster, syste

[systemd-devel] unable to fully halt system

2019-05-01 Thread Matt Zagrabelny
Greetings, I'm hitting an issue and I'm not quite sure the best place to debug it. I've got a fresh install of Debian Buster, systemd 241-3. and when I run "sudo halt", I'm expecting the system to power off, but it hangs at: [ OK ] Reached target Final Step. Starting Halt... [...]

Re: [systemd-devel] need to run systemctl --user daemon-reload to get USB device properly recognized

2018-07-20 Thread Matt Zagrabelny
Ping? Any ideas systemd masters? Thanks! -m On Fri, Jul 6, 2018 at 3:54 PM, Matt Zagrabelny wrote: > Greetings, > > I'm seeing some unexpected behavior for my systemd --user process. > Background: > > I've setup udev rules to fire off systemd --user units to download photo

Re: [systemd-devel] at replacement

2018-07-12 Thread Matt Zagrabelny
Hey Filipe, On Thu, Jul 12, 2018 at 3:07 PM, Filipe Brandenburger wrote: > Hi, > > On Thu, Jul 12, 2018 at 12:04 PM Matt Zagrabelny > wrote: > > I know systemd can replace cron. Do folks use it to replace "at", too? > > > > I know it *can* - with tw

[systemd-devel] at replacement

2018-07-12 Thread Matt Zagrabelny
I know systemd can replace cron. Do folks use it to replace "at", too? I know it *can* - with two files per "at" entry and then enabling and starting the timer. Is there an easier with to replace "at" with systemd than creating two files and enabling and starting the timer? Thanks for any info!

[systemd-devel] need to run systemctl --user daemon-reload to get USB device properly recognized

2018-07-06 Thread Matt Zagrabelny
Greetings, I'm seeing some unexpected behavior for my systemd --user process. Background: I've setup udev rules to fire off systemd --user units to download photos when my camera (PTP device) or my phone (MTP device) get plugged in. They are both USB devices: ==>

Re: [systemd-devel] (no subject)

2018-01-19 Thread Matt Zagrabelny
On Fri, Jan 19, 2018 at 11:16 AM, Reindl Harald wrote: > if you don't bother to write a subject it can't be that important > Sometimes people make mistakes. Like forgetting to enter a subject. Don't assume the worst. -m ___

Re: [systemd-devel] one shot service exit-code

2017-10-31 Thread Matt Zagrabelny
On Tue, Oct 31, 2017 at 11:21 AM, Reindl Harald <h.rei...@thelounge.net> wrote: > > > Am 31.10.2017 um 17:06 schrieb Matt Zagrabelny: > >> I have phone that I plug into my computer and have a udev rule to fire >> off a systemd service. Things work w

Re: [systemd-devel] one shot service exit-code

2017-10-31 Thread Matt Zagrabelny
On Tue, Oct 31, 2017 at 11:29 AM, Reindl Harald wrote: > > >> Any ideas why the terminal exit code is 0 from another terminal, but when >> systemd spawns it, it is 255? >> > > that's a question for gnome developers and i din't touch anything from > them until i am forced

[systemd-devel] one shot service exit-code

2017-10-31 Thread Matt Zagrabelny
Greetings, I have phone that I plug into my computer and have a udev rule to fire off a systemd service. Things work well, but the journal indicates that the command isn't terminating cleanly. Here is the udev rules. Added for completeness: % cat /etc/udev/rules.d/90-galaxy-note-3.rules #