Re: Running script after resuming suspend

2025-08-24 Thread Geoffrey Leach
On Mon, 25 Aug 2025 12:50:13 +0930 Tim via users wrote: > On Sun, 2025-08-24 at 08:04 -0700, Geoffrey Leach wrote: > > I need to restart a process after suspend > > > > As root, I created an executable script in > > /usr/lib/systemd/system-sleep: > > I would have thought somewhere in /etc/sys

Re: I need tar xz help

2025-08-24 Thread ToddAndMargo via users
On 8/24/25 3:51 AM, Charles Dennett wrote: On 8/23/25 11:55 PM, ToddAndMargo via users wrote: Hi All, This file betterbird-140.2.0.9.en-US.linux-x86_64.tar.xz Extracts just fine with File Roller (I am writing you on the extracted file). But I can't seem to get the syntax correct with t

Re: better back-up?

2025-08-24 Thread Tim via users
On Sun, 2025-08-24 at 11:56 +0100, Patrick O'Callaghan wrote: > I just use the recommended dist-upgrade option in dnf. It has never > failed me. I do of course have backups Just In Case. That's what > they're for. My experience with upgrading over the last version has always involved debugging som

Re: Running script after resuming suspend

2025-08-24 Thread Tim via users
On Sun, 2025-08-24 at 08:04 -0700, Geoffrey Leach wrote: > I need to restart a process after suspend > > As root, I created an executable script in > /usr/lib/systemd/system-sleep: I would have thought somewhere in /etc/systemd/ for user-created things. > case "$1/$2" in > pre/*) > ;

Re: Running script after resuming suspend

2025-08-24 Thread Grumpey
> Yes. chmod +x as well. And #!/usr/bin/sh > -- Odd, I just tried the same thing, using systemctl suspend to test. grumpey@grumpey1 system-sleep]$ pwd /usr/lib/systemd/system-sleep [grumpey@grumpey1 system-sleep]$ ls -l total 4 -rwxr-xr-x. 1 root root 101 Aug 24 15:26 test.bash [grumpey@grumpey1 s

Re: Running script after resuming suspend

2025-08-24 Thread Geoffrey Leach
On Sun, 24 Aug 2025 15:14:17 -0400 Grumpey wrote: > On Sun, Aug 24, 2025 at 11:05 AM Geoffrey Leach > wrote: > > > > I need to restart a process after suspend > > > > As root, I created an executable script in > > /usr/lib/systemd/system-sleep: > > > > case "$1/$2" in > > pre/*) > >

Re: Running script after resuming suspend

2025-08-24 Thread Grumpey
On Sun, Aug 24, 2025 at 11:05 AM Geoffrey Leach wrote: > > I need to restart a process after suspend > > As root, I created an executable script in > /usr/lib/systemd/system-sleep: > > case "$1/$2" in > pre/*) > ;; > post/*) > echo 'foo' > ;; > esac Did you include

Re: Running script after resuming suspend

2025-08-24 Thread Barry Scott
> On 24 Aug 2025, at 16:04, Geoffrey Leach wrote: > > As root, I created an executable script in > /usr/lib/systemd/system-sleep: Oh sorry you are expected to add config in /etc for systemd-sleep. See man systemd-sleep and man systemd-sleep.conf Barry -- __

Re: Running script after resuming suspend

2025-08-24 Thread Barry Scott
> On 24 Aug 2025, at 16:04, Geoffrey Leach wrote: > > As root, I created an executable script in > /usr/lib/systemd/system-sleep: You should put your stuff in /usr/local. /usr is not intended to modified. Treating as read-only is safest. Barry-- _

Re: Running script after resuming suspend

2025-08-24 Thread Qiyu Yan
Hi Geoffrey, (see inline reply) 在 2025/8/24 16:04, Geoffrey Leach 写道: I need to restart a process after suspend As root, I created an executable script in /usr/lib/systemd/system-sleep: case "$1/$2" in pre/*) ;; post/*) echo 'foo' ;; esac On suspend/resu

Re: Running script after resuming suspend

2025-08-24 Thread Geoffrey Leach
On Sun, 24 Aug 2025 16:45:21 +0100 Patrick O'Callaghan wrote: > On Sun, 2025-08-24 at 08:04 -0700, Geoffrey Leach wrote: > > I need to restart a process after suspend > > > > As root, I created an executable script in > > /usr/lib/systemd/system-sleep: > > > > case "$1/$2" in > > pre/*) >

Re: Running script after resuming suspend

2025-08-24 Thread Patrick O'Callaghan
On Sun, 2025-08-24 at 08:04 -0700, Geoffrey Leach wrote: > I need to restart a process after suspend > > As root, I created an executable script in > /usr/lib/systemd/system-sleep: > > case "$1/$2" in > pre/*) > ;; > post/*) > echo 'foo' > ;; > esac > > On suspen

Running script after resuming suspend

2025-08-24 Thread Geoffrey Leach
I need to restart a process after suspend As root, I created an executable script in /usr/lib/systemd/system-sleep: case "$1/$2" in pre/*) ;; post/*) echo 'foo' ;; esac On suspend/resume journalctl -u test.sh -- No entries What's my mistake? Thanks. -- __

Re: I need tar xz help

2025-08-24 Thread Go Canes
On Sat, Aug 23, 2025 at 11:56 PM ToddAndMargo via users wrote: > $ tar xjvf > /home/CDs/Linux/Thunderbird/betterbird-140.2.0.9.en-US.linux-x86_64.tar.xz > > bzip2: (stdin) is not a bzip2 file. > tar: Child returned status 2 > tar: Error is not recoverable: exiting now I see that you were able to

Re: I need tar xz help

2025-08-24 Thread George N. White III
On Sun, Aug 24, 2025 at 12:56 AM ToddAndMargo via users < users@lists.fedoraproject.org> wrote: > Hi All, > > This file > betterbird-140.2.0.9.en-US.linux-x86_64.tar.xz > > Extracts just fine with File Roller (I am writing > you on the extracted file). > > But I can't seem to get the syntax c

Re: better back-up?

2025-08-24 Thread Patrick O'Callaghan
On Sun, 2025-08-24 at 12:39 +0930, Tim via users wrote: > On Fri, 2025-08-22 at 11:54 +0100, Patrick O'Callaghan wrote: > > The number one rule of backups: if it's not automated then it's a > > problem, not a solution. I use Borg (via Borgmatic) in a nightly script > > to backup what I care about.

Re: I need tar xz help

2025-08-24 Thread Charles Dennett
On 8/23/25 11:55 PM, ToddAndMargo via users wrote: Hi All, This file     betterbird-140.2.0.9.en-US.linux-x86_64.tar.xz Extracts just fine with File Roller (I am writing you on the extracted file). But I can't seem to get the syntax correct with tar, "x" or "j".  Supposedly it is an "x":