Re: dnf install removes /etc/systemd/system/multi-user.wants/myservice.target symlink

2022-02-08 Thread Kevin P. Fleming
On Mon, Feb 7, 2022 at 5:52 PM Barry wrote: > > > On 7 Feb 2022, at 19:19, Kevin P. Fleming wrote: > >  > Slightly off-topic, but I think it's relevant: > > If 'myservice' and 'ods-prx' are referring to the same thing, I think > you're supposed to use 'systemctl preset' instead of 'systemctl

Re: dnf install removes /etc/systemd/system/multi-user.wants/myservice.target symlink

2022-02-07 Thread Barry
> On 7 Feb 2022, at 19:19, Kevin P. Fleming wrote: > >  > Slightly off-topic, but I think it's relevant: > > If 'myservice' and 'ods-prx' are referring to the same thing, I think you're > supposed to use 'systemctl preset' instead of 'systemctl enable'. This allows > the admin to decide

Re: dnf install removes /etc/systemd/system/multi-user.wants/myservice.target symlink

2022-02-07 Thread Kevin P. Fleming
Slightly off-topic, but I think it's relevant: If 'myservice' and 'ods-prx' are referring to the same thing, I think you're supposed to use 'systemctl preset' instead of 'systemctl enable'. This allows the admin to decide whether the installed service/target/timer/etc. should be enabled during

dnf install removes /etc/systemd/system/multi-user.wants/myservice.target symlink

2022-02-07 Thread Barry Scott
This is not for a package in Fedora, its for a package I'm working on for Oracle Linux 8. I install /usr/lib/systemd/system/myservice.target that has: [Install] WantedBy=multi-user.target In %post I run this: ls -l /etc/systemd/system/multi-user.target.wants /usr/bin/systemctl --no-reload