You are not logged in.

#1 2023-07-02 19:56:55

Artyom
Member
Registered: 2017-03-27
Posts: 68

Remove unwanted systemd template instances

Hi,

I have a problem with a unit instantiated under Systemd.
It still appears in the list of units as "inactive/dead" despite several reboots.
I have several units using template@.service as template.
One of them is due to a typing error and is polluting the unit list.
How can I make it disappear permanently?

Thank you in advance for your help.

Offline

#2 2023-07-02 20:32:33

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: Remove unwanted systemd template instances

That's pretty vague.  What's the actual service and systemctl output?

But reboots are (on their own) irrelevant - have you disabled this service?

What's the output of the following:

find /etc/systemd/ ! -name '*.conf' -type f -o -type l

Last edited by Trilby (2023-07-02 20:34:07)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2023-07-03 08:58:26

Artyom
Member
Registered: 2017-03-27
Posts: 68

Re: Remove unwanted systemd template instances

The problem is that I have an instance of the `arma3server@.service` template named `arma3server@arma3update.service` that was created by mistake.
This appears in my Cockpit service manager (web admin tool) and pollutes the display.
This instance also appears when I run the command

sudo systemctl list-units --all
  UNIT                                                                                         LOAD      ACTIVE   SUB       DESCRIPTION                                                                        
  proc-sys-fs-binfmt_misc.automount                                                            loaded    active   waiting   Arbitrary Executable File Formats File System Automount Point                      
  dev-disk-by\x2ddiskseq-1.device                                                              loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00
  dev-disk-by\x2ddiskseq-1\x2dpart1.device                                                     loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:0
  dev-disk-by\x2ddiskseq-1\x2dpart2.device                                                     loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:1
  dev-disk-by\x2ddiskseq-1\x2dpart3.device                                                     loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:2
  dev-disk-by\x2ddiskseq-2.device                                                              loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00
  dev-disk-by\x2ddiskseq-2\x2dpart1.device                                                     loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:0
  dev-disk-by\x2ddiskseq-2\x2dpart2.device                                                     loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:1
  dev-disk-by\x2ddiskseq-2\x2dpart3.device                                                     loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:2
  dev-disk-by\x2did-md\x2dname\x2drescue:0.device                                              loaded    active   plugged   /dev/disk/by-id/md-name-rescue:0
  dev-disk-by\x2did-md\x2dname\x2drescue:1.device                                              loaded    active   plugged   /dev/disk/by-id/md-name-rescue:1
  dev-disk-by\x2did-md\x2dname\x2drescue:2.device                                              loaded    active   plugged   /dev/disk/by-id/md-name-rescue:2
  dev-disk-by\x2did-md\x2duuid\x2d04020206:9801040b:6ae24203:656794dd.device                   loaded    active   plugged   /dev/disk/by-id/md-uuid-04020206:9801040b:6ae24203:656794dd
  dev-disk-by\x2did-md\x2duuid\x2dd05310ce:b094b459:56fec1a7:2625aacd.device                   loaded    active   plugged   /dev/disk/by-id/md-uuid-d05310ce:b094b459:56fec1a7:2625aacd
  dev-disk-by\x2did-md\x2duuid\x2dea92289b:250f5504:7e3c22a6:6f4c5488.device                   loaded    active   plugged   /dev/disk/by-id/md-uuid-ea92289b:250f5504:7e3c22a6:6f4c5488
  dev-disk-by\x2did-nvme\x2deui.002538b231b5d0a8.device                                        loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00
  dev-disk-by\x2did-nvme\x2deui.002538b231b5d0a8\x2dpart1.device                               loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:0
  dev-disk-by\x2did-nvme\x2deui.002538b231b5d0a8\x2dpart2.device                               loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:1
  dev-disk-by\x2did-nvme\x2deui.002538b231b5d0a8\x2dpart3.device                               loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:2
  dev-disk-by\x2did-nvme\x2deui.002538b231b5d0bc.device                                        loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00
  dev-disk-by\x2did-nvme\x2deui.002538b231b5d0bc\x2dpart1.device                               loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:0
  dev-disk-by\x2did-nvme\x2deui.002538b231b5d0bc\x2dpart2.device                               loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:1
  dev-disk-by\x2did-nvme\x2deui.002538b231b5d0bc\x2dpart3.device                               loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:2
  dev-disk-by\x2did-nvme\x2dSAMSUNG_MZVL21T0HCLR\x2d00B00_S676NX0W218511.device                loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00
  dev-disk-by\x2did-nvme\x2dSAMSUNG_MZVL21T0HCLR\x2d00B00_S676NX0W218511\x2dpart1.device       loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:0
  dev-disk-by\x2did-nvme\x2dSAMSUNG_MZVL21T0HCLR\x2d00B00_S676NX0W218511\x2dpart2.device       loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:1
  dev-disk-by\x2did-nvme\x2dSAMSUNG_MZVL21T0HCLR\x2d00B00_S676NX0W218511\x2dpart3.device       loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:2
  dev-disk-by\x2did-nvme\x2dSAMSUNG_MZVL21T0HCLR\x2d00B00_S676NX0W218511_1.device              loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00
  dev-disk-by\x2did-nvme\x2dSAMSUNG_MZVL21T0HCLR\x2d00B00_S676NX0W218511_1\x2dpart1.device     loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:0
  dev-disk-by\x2did-nvme\x2dSAMSUNG_MZVL21T0HCLR\x2d00B00_S676NX0W218511_1\x2dpart2.device     loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:1
  dev-disk-by\x2did-nvme\x2dSAMSUNG_MZVL21T0HCLR\x2d00B00_S676NX0W218511_1\x2dpart3.device     loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:2
  dev-disk-by\x2did-nvme\x2dSAMSUNG_MZVL21T0HCLR\x2d00B00_S676NX0W218516.device                loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00
  dev-disk-by\x2did-nvme\x2dSAMSUNG_MZVL21T0HCLR\x2d00B00_S676NX0W218516\x2dpart1.device       loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:0
  dev-disk-by\x2did-nvme\x2dSAMSUNG_MZVL21T0HCLR\x2d00B00_S676NX0W218516\x2dpart2.device       loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:1
  dev-disk-by\x2did-nvme\x2dSAMSUNG_MZVL21T0HCLR\x2d00B00_S676NX0W218516\x2dpart3.device       loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:2
  dev-disk-by\x2did-nvme\x2dSAMSUNG_MZVL21T0HCLR\x2d00B00_S676NX0W218516_1.device              loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00
  dev-disk-by\x2did-nvme\x2dSAMSUNG_MZVL21T0HCLR\x2d00B00_S676NX0W218516_1\x2dpart1.device     loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:0
  dev-disk-by\x2did-nvme\x2dSAMSUNG_MZVL21T0HCLR\x2d00B00_S676NX0W218516_1\x2dpart2.device     loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:1
  dev-disk-by\x2did-nvme\x2dSAMSUNG_MZVL21T0HCLR\x2d00B00_S676NX0W218516_1\x2dpart3.device     loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:2
  dev-disk-by\x2dpartuuid-46dabaaf\x2d01.device                                                loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:0
  dev-disk-by\x2dpartuuid-46dabaaf\x2d02.device                                                loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:1
  dev-disk-by\x2dpartuuid-46dabaaf\x2d03.device                                                loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:2
  dev-disk-by\x2dpartuuid-78ec92ac\x2d01.device                                                loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:0
  dev-disk-by\x2dpartuuid-78ec92ac\x2d02.device                                                loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:1
  dev-disk-by\x2dpartuuid-78ec92ac\x2d03.device                                                loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:2
  dev-disk-by\x2dpath-pci\x2d0000:08:00.0\x2dnvme\x2d1.device                                  loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00
  dev-disk-by\x2dpath-pci\x2d0000:08:00.0\x2dnvme\x2d1\x2dpart1.device                         loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:0
  dev-disk-by\x2dpath-pci\x2d0000:08:00.0\x2dnvme\x2d1\x2dpart2.device                         loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:1
  dev-disk-by\x2dpath-pci\x2d0000:08:00.0\x2dnvme\x2d1\x2dpart3.device                         loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:2
  dev-disk-by\x2dpath-pci\x2d0000:09:00.0\x2dnvme\x2d1.device                                  loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00
  dev-disk-by\x2dpath-pci\x2d0000:09:00.0\x2dnvme\x2d1\x2dpart1.device                         loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:0
  dev-disk-by\x2dpath-pci\x2d0000:09:00.0\x2dnvme\x2d1\x2dpart2.device                         loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:1
  dev-disk-by\x2dpath-pci\x2d0000:09:00.0\x2dnvme\x2d1\x2dpart3.device                         loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:2
  dev-disk-by\x2duuid-b12e7697\x2dbd83\x2d4f8e\x2d9b4a\x2d5f0e52974342.device                  loaded    active   plugged   /dev/disk/by-uuid/b12e7697-bd83-4f8e-9b4a-5f0e52974342
  dev-disk-by\x2duuid-c704b179\x2d087e\x2d48f9\x2d8993\x2de56499cbee07.device                  loaded    active   plugged   /dev/disk/by-uuid/c704b179-087e-48f9-8993-e56499cbee07
  dev-disk-by\x2duuid-e3b3efad\x2ddcb8\x2d4c47\x2d9bcd\x2d758489f2385d.device                  loaded    active   plugged   /dev/disk/by-uuid/e3b3efad-dcb8-4c47-9bcd-758489f2385d
  dev-md-0.device                                                                              loaded    active   plugged   /dev/md/0
  dev-md-1.device                                                                              loaded    active   plugged   /dev/md/1
  dev-md-2.device                                                                              loaded    active   plugged   /dev/md/2
  dev-md0.device                                                                               loaded    active   plugged   /dev/md0
  dev-md1.device                                                                               loaded    active   plugged   /dev/md1
  dev-md2.device                                                                               loaded    active   plugged   /dev/md2
  dev-nvme0n1.device                                                                           loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00
  dev-nvme0n1p1.device                                                                         loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:0
  dev-nvme0n1p2.device                                                                         loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:1
  dev-nvme0n1p3.device                                                                         loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:2
  dev-nvme1n1.device                                                                           loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00
  dev-nvme1n1p1.device                                                                         loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:0
  dev-nvme1n1p2.device                                                                         loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:1
  dev-nvme1n1p3.device                                                                         loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:2
  dev-rfkill.device                                                                            loaded    active   plugged   /dev/rfkill
  dev-ttyS0.device                                                                             loaded    active   plugged   /dev/ttyS0
  dev-ttyS1.device                                                                             loaded    active   plugged   /dev/ttyS1
  dev-ttyS10.device                                                                            loaded    active   plugged   /dev/ttyS10
  dev-ttyS11.device                                                                            loaded    active   plugged   /dev/ttyS11
  dev-ttyS12.device                                                                            loaded    active   plugged   /dev/ttyS12
  dev-ttyS13.device                                                                            loaded    active   plugged   /dev/ttyS13
  dev-ttyS14.device                                                                            loaded    active   plugged   /dev/ttyS14
  dev-ttyS15.device                                                                            loaded    active   plugged   /dev/ttyS15
  dev-ttyS16.device                                                                            loaded    active   plugged   /dev/ttyS16
  dev-ttyS17.device                                                                            loaded    active   plugged   /dev/ttyS17
  dev-ttyS18.device                                                                            loaded    active   plugged   /dev/ttyS18
  dev-ttyS19.device                                                                            loaded    active   plugged   /dev/ttyS19
  dev-ttyS2.device                                                                             loaded    active   plugged   /dev/ttyS2
  dev-ttyS20.device                                                                            loaded    active   plugged   /dev/ttyS20
  dev-ttyS21.device                                                                            loaded    active   plugged   /dev/ttyS21
  dev-ttyS22.device                                                                            loaded    active   plugged   /dev/ttyS22
  dev-ttyS23.device                                                                            loaded    active   plugged   /dev/ttyS23
  dev-ttyS24.device                                                                            loaded    active   plugged   /dev/ttyS24
  dev-ttyS25.device                                                                            loaded    active   plugged   /dev/ttyS25
  dev-ttyS26.device                                                                            loaded    active   plugged   /dev/ttyS26
  dev-ttyS27.device                                                                            loaded    active   plugged   /dev/ttyS27
  dev-ttyS28.device                                                                            loaded    active   plugged   /dev/ttyS28
  dev-ttyS29.device                                                                            loaded    active   plugged   /dev/ttyS29
  dev-ttyS3.device                                                                             loaded    active   plugged   /dev/ttyS3
  dev-ttyS30.device                                                                            loaded    active   plugged   /dev/ttyS30
  dev-ttyS31.device                                                                            loaded    active   plugged   /dev/ttyS31
  dev-ttyS4.device                                                                             loaded    active   plugged   /dev/ttyS4
  dev-ttyS5.device                                                                             loaded    active   plugged   /dev/ttyS5
  dev-ttyS6.device                                                                             loaded    active   plugged   /dev/ttyS6
  dev-ttyS7.device                                                                             loaded    active   plugged   /dev/ttyS7
  dev-ttyS8.device                                                                             loaded    active   plugged   /dev/ttyS8
  dev-ttyS9.device                                                                             loaded    active   plugged   /dev/ttyS9
  sys-devices-pci0000:00-0000:00:01.2-0000:01:00.2-0000:02:09.0-0000:07:00.0-net-enp7s0.device loaded    active   plugged   I210 Gigabit Network Connection
  sys-devices-pci0000:00-0000:00:03.3-0000:08:00.0-nvme-nvme1-nvme1n1-nvme1n1p1.device         loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:0
  sys-devices-pci0000:00-0000:00:03.3-0000:08:00.0-nvme-nvme1-nvme1n1-nvme1n1p2.device         loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:1
  sys-devices-pci0000:00-0000:00:03.3-0000:08:00.0-nvme-nvme1-nvme1n1-nvme1n1p3.device         loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:2
  sys-devices-pci0000:00-0000:00:03.3-0000:08:00.0-nvme-nvme1-nvme1n1.device                   loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00
  sys-devices-pci0000:00-0000:00:03.4-0000:09:00.0-nvme-nvme0-nvme0n1-nvme0n1p1.device         loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:0
  sys-devices-pci0000:00-0000:00:03.4-0000:09:00.0-nvme-nvme0-nvme0n1-nvme0n1p2.device         loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:1
  sys-devices-pci0000:00-0000:00:03.4-0000:09:00.0-nvme-nvme0-nvme0n1-nvme0n1p3.device         loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00 rescue:2
  sys-devices-pci0000:00-0000:00:03.4-0000:09:00.0-nvme-nvme0-nvme0n1.device                   loaded    active   plugged   SAMSUNG MZVL21T0HCLR-00B00
  sys-devices-platform-serial8250-tty-ttyS0.device                                             loaded    active   plugged   /sys/devices/platform/serial8250/tty/ttyS0
  sys-devices-platform-serial8250-tty-ttyS1.device                                             loaded    active   plugged   /sys/devices/platform/serial8250/tty/ttyS1
  sys-devices-platform-serial8250-tty-ttyS10.device                                            loaded    active   plugged   /sys/devices/platform/serial8250/tty/ttyS10
  sys-devices-platform-serial8250-tty-ttyS11.device                                            loaded    active   plugged   /sys/devices/platform/serial8250/tty/ttyS11
  sys-devices-platform-serial8250-tty-ttyS12.device                                            loaded    active   plugged   /sys/devices/platform/serial8250/tty/ttyS12
  sys-devices-platform-serial8250-tty-ttyS13.device                                            loaded    active   plugged   /sys/devices/platform/serial8250/tty/ttyS13
  sys-devices-platform-serial8250-tty-ttyS14.device                                            loaded    active   plugged   /sys/devices/platform/serial8250/tty/ttyS14
  sys-devices-platform-serial8250-tty-ttyS15.device                                            loaded    active   plugged   /sys/devices/platform/serial8250/tty/ttyS15
  sys-devices-platform-serial8250-tty-ttyS16.device                                            loaded    active   plugged   /sys/devices/platform/serial8250/tty/ttyS16
  sys-devices-platform-serial8250-tty-ttyS17.device                                            loaded    active   plugged   /sys/devices/platform/serial8250/tty/ttyS17
  sys-devices-platform-serial8250-tty-ttyS18.device                                            loaded    active   plugged   /sys/devices/platform/serial8250/tty/ttyS18
  sys-devices-platform-serial8250-tty-ttyS19.device                                            loaded    active   plugged   /sys/devices/platform/serial8250/tty/ttyS19
  sys-devices-platform-serial8250-tty-ttyS2.device                                             loaded    active   plugged   /sys/devices/platform/serial8250/tty/ttyS2
  sys-devices-platform-serial8250-tty-ttyS20.device                                            loaded    active   plugged   /sys/devices/platform/serial8250/tty/ttyS20
  sys-devices-platform-serial8250-tty-ttyS21.device                                            loaded    active   plugged   /sys/devices/platform/serial8250/tty/ttyS21
  sys-devices-platform-serial8250-tty-ttyS22.device                                            loaded    active   plugged   /sys/devices/platform/serial8250/tty/ttyS22
  sys-devices-platform-serial8250-tty-ttyS23.device                                            loaded    active   plugged   /sys/devices/platform/serial8250/tty/ttyS23
  sys-devices-platform-serial8250-tty-ttyS24.device                                            loaded    active   plugged   /sys/devices/platform/serial8250/tty/ttyS24
  sys-devices-platform-serial8250-tty-ttyS25.device                                            loaded    active   plugged   /sys/devices/platform/serial8250/tty/ttyS25
  sys-devices-platform-serial8250-tty-ttyS26.device                                            loaded    active   plugged   /sys/devices/platform/serial8250/tty/ttyS26
  sys-devices-platform-serial8250-tty-ttyS27.device                                            loaded    active   plugged   /sys/devices/platform/serial8250/tty/ttyS27
  sys-devices-platform-serial8250-tty-ttyS28.device                                            loaded    active   plugged   /sys/devices/platform/serial8250/tty/ttyS28
  sys-devices-platform-serial8250-tty-ttyS29.device                                            loaded    active   plugged   /sys/devices/platform/serial8250/tty/ttyS29
  sys-devices-platform-serial8250-tty-ttyS3.device                                             loaded    active   plugged   /sys/devices/platform/serial8250/tty/ttyS3
  sys-devices-platform-serial8250-tty-ttyS30.device                                            loaded    active   plugged   /sys/devices/platform/serial8250/tty/ttyS30
  sys-devices-platform-serial8250-tty-ttyS31.device                                            loaded    active   plugged   /sys/devices/platform/serial8250/tty/ttyS31
  sys-devices-platform-serial8250-tty-ttyS4.device                                             loaded    active   plugged   /sys/devices/platform/serial8250/tty/ttyS4
  sys-devices-platform-serial8250-tty-ttyS5.device                                             loaded    active   plugged   /sys/devices/platform/serial8250/tty/ttyS5
  sys-devices-platform-serial8250-tty-ttyS6.device                                             loaded    active   plugged   /sys/devices/platform/serial8250/tty/ttyS6
  sys-devices-platform-serial8250-tty-ttyS7.device                                             loaded    active   plugged   /sys/devices/platform/serial8250/tty/ttyS7
  sys-devices-platform-serial8250-tty-ttyS8.device                                             loaded    active   plugged   /sys/devices/platform/serial8250/tty/ttyS8
  sys-devices-platform-serial8250-tty-ttyS9.device                                             loaded    active   plugged   /sys/devices/platform/serial8250/tty/ttyS9
  sys-devices-virtual-block-md0.device                                                         loaded    active   plugged   /sys/devices/virtual/block/md0
  sys-devices-virtual-block-md1.device                                                         loaded    active   plugged   /sys/devices/virtual/block/md1
  sys-devices-virtual-block-md2.device                                                         loaded    active   plugged   /sys/devices/virtual/block/md2
  sys-devices-virtual-misc-rfkill.device                                                       loaded    active   plugged   /sys/devices/virtual/misc/rfkill
  sys-module-configfs.device                                                                   loaded    active   plugged   /sys/module/configfs
  sys-module-fuse.device                                                                       loaded    active   plugged   /sys/module/fuse
  sys-subsystem-net-devices-enp7s0.device                                                      loaded    active   plugged   I210 Gigabit Network Connection                                                    
  -.mount                                                                                      loaded    active   mounted   Root Mount
  boot.mount                                                                                   loaded    active   mounted   /boot
  dev-hugepages.mount                                                                          loaded    active   mounted   Huge Pages File System
  dev-mqueue.mount                                                                             loaded    active   mounted   POSIX Message Queue File System
● home.mount                                                                                   not-found inactive dead      home.mount
  proc-sys-fs-binfmt_misc.mount                                                                loaded    inactive dead      Arbitrary Executable File Formats File System
  run-credentials-systemd\x2dsysctl.service.mount                                              loaded    active   mounted   /run/credentials/systemd-sysctl.service
  run-credentials-systemd\x2dsysusers.service.mount                                            loaded    active   mounted   /run/credentials/systemd-sysusers.service
  run-credentials-systemd\x2dtmpfiles\x2dsetup.service.mount                                   loaded    active   mounted   /run/credentials/systemd-tmpfiles-setup.service
  run-credentials-systemd\x2dtmpfiles\x2dsetup\x2ddev.service.mount                            loaded    active   mounted   /run/credentials/systemd-tmpfiles-setup-dev.service
  run-user-1000.mount                                                                          loaded    active   mounted   /run/user/1000
  sys-fs-fuse-connections.mount                                                                loaded    active   mounted   FUSE Control File System
  sys-kernel-config.mount                                                                      loaded    active   mounted   Kernel Configuration File System
  sys-kernel-debug.mount                                                                       loaded    active   mounted   Kernel Debug File System
  sys-kernel-tracing.mount                                                                     loaded    active   mounted   Kernel Trace File System
  tmp.mount                                                                                    loaded    active   mounted   Temporary Directory /tmp
  var-lib-machines.mount                                                                       loaded    inactive dead      Virtual Machine and Container Storage (Compatibility)                              
  systemd-ask-password-console.path                                                            loaded    active   waiting   Dispatch Password Requests to Console Directory Watch
  systemd-ask-password-wall.path                                                               loaded    active   waiting   Forward Password Requests to Wall Directory Watch                                  
  init.scope                                                                                   loaded    active   running   System and Service Manager
  session-5.scope                                                                              loaded    active   running   Session 5 of User artyom                                                           
  archlinux-keyring-wkd-sync.service                                                           loaded    inactive dead      Refresh existing keys of archlinux-keyring
  arma3modupdate.service                                                                       loaded    inactive dead      ArmA 3 Mods Update
  arma3server@arma3modupdate.service                                                           loaded    inactive dead      ArmA 3 Server
  arma3server@OpEx.service                                                                     loaded    active   running   ArmA 3 Server
  auditd.service                                                                               loaded    inactive dead      Security Auditing Service
  avahi-daemon.service                                                                         loaded    inactive dead      Avahi mDNS/DNS-SD Stack
  cockpit-motd.service                                                                         loaded    inactive dead      Cockpit motd updater service
  cockpit-wsinstance-http.service                                                              loaded    inactive dead      Cockpit Web Service http instance
  cockpit.service                                                                              loaded    inactive dead      Cockpit Web Service
  cronie.service                                                                               loaded    active   running   Periodic Command Scheduler
  dbus.service                                                                                 loaded    active   running   D-Bus System Message Bus
● display-manager.service                                                                      not-found inactive dead      display-manager.service
  dm-event.service                                                                             loaded    inactive dead      Device-mapper event daemon
● ebtables.service                                                                             not-found inactive dead      ebtables.service
  emergency.service                                                                            loaded    inactive dead      Emergency Shell
  firewalld.service                                                                            loaded    active   running   firewalld - dynamic firewall daemon
  getty@tty1.service                                                                           loaded    active   running   Getty on tty1
  haveged.service                                                                              loaded    inactive dead      Entropy Daemon based on the HAVEGE algorithm
  initrd-cleanup.service                                                                       loaded    inactive dead      Cleaning Up and Shutting Down Daemons
  initrd-parse-etc.service                                                                     loaded    inactive dead      Mountpoints Configured in the Real Root
  initrd-switch-root.service                                                                   loaded    inactive dead      Switch Root
  initrd-udevadm-cleanup-db.service                                                            loaded    inactive dead      Cleanup udev Database
  ip6tables.service                                                                            loaded    inactive dead      IPv6 Packet Filtering Framework
● ipset.service                                                                                not-found inactive dead      ipset.service
  iptables.service                                                                             loaded    inactive dead      IPv4 Packet Filtering Framework
  kmod-static-nodes.service                                                                    loaded    active   exited    Create List of Static Device Nodes
  ldconfig.service                                                                             loaded    active   exited    Rebuild Dynamic Linker Cache
  lvm2-lvmpolld.service                                                                        loaded    inactive dead      LVM2 poll daemon
  lvm2-monitor.service                                                                         loaded    active   exited    Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
  mdmonitor.service                                                                            loaded    active   running   MD array monitor
  mkinitcpio-generate-shutdown-ramfs.service                                                   loaded    inactive dead      Generate shutdown-ramfs
  modprobe@configfs.service                                                                    loaded    inactive dead      Load Kernel Module configfs
  modprobe@dm_mod.service                                                                      loaded    inactive dead      Load Kernel Module dm_mod
  modprobe@drm.service                                                                         loaded    inactive dead      Load Kernel Module drm
  modprobe@fuse.service                                                                        loaded    inactive dead      Load Kernel Module fuse
  modprobe@loop.service                                                                        loaded    inactive dead      Load Kernel Module loop
  NetworkManager-wait-online.service                                                           loaded    active   exited    Network Manager Wait Online
  NetworkManager.service                                                                       loaded    active   running   Network Manager
  nftables.service                                                                             loaded    inactive dead      Netfilter Tables
● plymouth-quit-wait.service                                                                   not-found inactive dead      plymouth-quit-wait.service
● plymouth-start.service                                                                       not-found inactive dead      plymouth-start.service
  pmcd.service                                                                                 loaded    active   running   Performance Metrics Collector Daemon
  pmlogger.service                                                                             loaded    active   running   Performance Metrics Archive Logger
  pmlogger_check.service                                                                       loaded    inactive dead      Check pmlogger instances are running
  pmlogger_daily.service                                                                       loaded    inactive dead      Process archive logs
  pmlogger_farm.service                                                                        loaded    active   running   pmlogger farm service
  pmlogger_farm_check.service                                                                  loaded    inactive dead      Check and migrate non-primary pmlogger farm instances
  podman.service                                                                               loaded    inactive dead      Podman API Service
  polkit.service                                                                               loaded    active   running   Authorization Manager
  rescue.service                                                                               loaded    inactive dead      Rescue Shell
  shadow.service                                                                               loaded    inactive dead      Verify integrity of password and group files
  sshd.service                                                                                 loaded    active   running   OpenSSH Daemon
  sshdgenkeys.service                                                                          loaded    inactive dead      SSH Key Generation
● syslog.service                                                                               not-found inactive dead      syslog.service
  systemd-ask-password-console.service                                                         loaded    inactive dead      Dispatch Password Requests to Console
  systemd-ask-password-wall.service                                                            loaded    inactive dead      Forward Password Requests to Wall
  systemd-binfmt.service                                                                       loaded    inactive dead      Set Up Additional Binary Formats
  systemd-boot-random-seed.service                                                             loaded    inactive dead      Update Boot Loader Random Seed
  systemd-firstboot.service                                                                    loaded    inactive dead      First Boot Wizard
  systemd-fsck-root.service                                                                    loaded    inactive dead      File System Check on Root Device
  systemd-hwdb-update.service                                                                  loaded    inactive dead      Rebuild Hardware Database
  systemd-journal-catalog-update.service                                                       loaded    active   exited    Rebuild Journal Catalog
  systemd-journal-flush.service                                                                loaded    active   exited    Flush Journal to Persistent Storage
  systemd-journald.service                                                                     loaded    active   running   Journal Service
  systemd-logind.service                                                                       loaded    active   running   User Login Management
  systemd-machine-id-commit.service                                                            loaded    inactive dead      Commit a transient machine-id on disk
  systemd-modules-load.service                                                                 loaded    inactive dead      Load Kernel Modules
  systemd-oomd.service                                                                         loaded    inactive dead      Userspace Out-Of-Memory (OOM) Killer
  systemd-pcrmachine.service                                                                   loaded    inactive dead      TPM2 PCR Machine ID Measurement
  systemd-pcrphase-initrd.service                                                              loaded    inactive dead      TPM2 PCR Barrier (initrd)
  systemd-pcrphase-sysinit.service                                                             loaded    inactive dead      TPM2 PCR Barrier (Initialization)
  systemd-pcrphase.service                                                                     loaded    inactive dead      TPM2 PCR Barrier (User)
  systemd-random-seed.service                                                                  loaded    active   exited    Load/Save OS Random Seed
  systemd-remount-fs.service                                                                   loaded    active   exited    Remount Root and Kernel File Systems
  systemd-repart.service                                                                       loaded    inactive dead      Repartition Root Disk
  systemd-rfkill.service                                                                       loaded    inactive dead      Load/Save RF Kill Switch Status
  systemd-sysctl.service                                                                       loaded    active   exited    Apply Kernel Variables
  systemd-sysext.service                                                                       loaded    inactive dead      Merge System Extension Images into /usr/ and /opt/
  systemd-sysusers.service                                                                     loaded    active   exited    Create System Users
  systemd-timesyncd.service                                                                    loaded    active   running   Network Time Synchronization
  systemd-tmpfiles-clean.service                                                               loaded    inactive dead      Cleanup of Temporary Directories
  systemd-tmpfiles-setup-dev.service                                                           loaded    active   exited    Create Static Device Nodes in /dev
  systemd-tmpfiles-setup.service                                                               loaded    active   exited    Create Volatile Files and Directories
  systemd-udev-settle.service                                                                  loaded    inactive dead      Wait for udev To Complete Device Initialization
  systemd-udev-trigger.service                                                                 loaded    active   exited    Coldplug All udev Devices
  systemd-udevd.service                                                                        loaded    active   running   Rule-based Manager for Device Events and Files
  systemd-update-done.service                                                                  loaded    active   exited    Update is Completed
  systemd-update-utmp.service                                                                  loaded    active   exited    Record System Boot/Shutdown in UTMP
  systemd-user-sessions.service                                                                loaded    active   exited    Permit User Sessions
  systemd-vconsole-setup.service                                                               loaded    inactive dead      Setup Virtual Console
  teamspeak3-server.service                                                                    loaded    active   running   TeamSpeak3 Server
  user-runtime-dir@1000.service                                                                loaded    active   exited    User Runtime Directory /run/user/1000
  user@1000.service                                                                            loaded    active   running   User Manager for UID 1000
● zabbix-agent.service                                                                         not-found inactive dead      zabbix-agent.service                                                               
  -.slice                                                                                      loaded    active   active    Root Slice
  system-arma3server.slice                                                                     loaded    active   active    Slice /system/arma3server
  system-getty.slice                                                                           loaded    active   active    Slice /system/getty
  system-modprobe.slice                                                                        loaded    active   active    Slice /system/modprobe
  system.slice                                                                                 loaded    active   active    System Slice
  user-1000.slice                                                                              loaded    active   active    User Slice of UID 1000
  user.slice                                                                                   loaded    active   active    User and Session Slice                                                             
  avahi-daemon.socket                                                                          loaded    inactive dead      Avahi mDNS/DNS-SD Stack Activation Socket
  cockpit-wsinstance-http.socket                                                               loaded    inactive dead      Socket for Cockpit Web Service http instance
  cockpit-wsinstance-https-factory.socket                                                      loaded    inactive dead      Socket for Cockpit Web Service https instance factory
  cockpit.socket                                                                               loaded    active   listening Cockpit Web Service Socket
  dbus.socket                                                                                  loaded    active   running   D-Bus System Message Bus Socket
  dm-event.socket                                                                              loaded    active   listening Device-mapper event daemon FIFOs
  lvm2-lvmpolld.socket                                                                         loaded    active   listening LVM2 poll daemon socket
  podman.socket                                                                                loaded    active   listening Podman API Socket
  syslog.socket                                                                                loaded    inactive dead      Syslog Socket
  systemd-coredump.socket                                                                      loaded    active   listening Process Core Dump Socket
  systemd-journald-audit.socket                                                                loaded    inactive dead      Journal Audit Socket
  systemd-journald-dev-log.socket                                                              loaded    active   running   Journal Socket (/dev/log)
  systemd-journald.socket                                                                      loaded    active   running   Journal Socket
  systemd-oomd.socket                                                                          loaded    inactive dead      Userspace Out-Of-Memory (OOM) Killer Socket
  systemd-rfkill.socket                                                                        loaded    active   listening Load/Save RF Kill Switch Status /dev/rfkill Watch
  systemd-udevd-control.socket                                                                 loaded    active   running   udev Control Socket
  systemd-udevd-kernel.socket                                                                  loaded    active   running   udev Kernel Socket                                                                 
  dev-disk-by\x2did-md\x2dname\x2drescue:0.swap                                                loaded    active   active    /dev/disk/by-id/md-name-rescue:0
  dev-disk-by\x2did-md\x2duuid\x2dea92289b:250f5504:7e3c22a6:6f4c5488.swap                     loaded    active   active    /dev/disk/by-id/md-uuid-ea92289b:250f5504:7e3c22a6:6f4c5488
  dev-disk-by\x2duuid-e3b3efad\x2ddcb8\x2d4c47\x2d9bcd\x2d758489f2385d.swap                    loaded    active   active    /dev/disk/by-uuid/e3b3efad-dcb8-4c47-9bcd-758489f2385d
  dev-md-0.swap                                                                                loaded    active   active    /dev/md/0
  dev-md0.swap                                                                                 loaded    active   active    /dev/md0                                                                           
  basic.target                                                                                 loaded    active   active    Basic System
  blockdev@dev-disk-by\x2duuid-b12e7697\x2dbd83\x2d4f8e\x2d9b4a\x2d5f0e52974342.target         loaded    inactive dead      Block Device Preparation for /dev/disk/by-uuid/b12e7697-bd83-4f8e-9b4a-5f0e52974342
  blockdev@dev-disk-by\x2duuid-c704b179\x2d087e\x2d48f9\x2d8993\x2de56499cbee07.target         loaded    inactive dead      Block Device Preparation for /dev/disk/by-uuid/c704b179-087e-48f9-8993-e56499cbee07
  blockdev@dev-disk-by\x2duuid-e3b3efad\x2ddcb8\x2d4c47\x2d9bcd\x2d758489f2385d.target         loaded    inactive dead      Block Device Preparation for /dev/disk/by-uuid/e3b3efad-dcb8-4c47-9bcd-758489f2385d
  blockdev@dev-md0.target                                                                      loaded    inactive dead      Block Device Preparation for /dev/md0
  blockdev@dev-md1.target                                                                      loaded    inactive dead      Block Device Preparation for /dev/md1
  cryptsetup-pre.target                                                                        loaded    inactive dead      Local Encrypted Volumes (Pre)
  cryptsetup.target                                                                            loaded    active   active    Local Encrypted Volumes
  emergency.target                                                                             loaded    inactive dead      Emergency Mode
  first-boot-complete.target                                                                   loaded    inactive dead      First Boot Complete
  getty-pre.target                                                                             loaded    inactive dead      Preparation for Logins
  getty.target                                                                                 loaded    active   active    Login Prompts
  graphical.target                                                                             loaded    active   active    Graphical Interface
  initrd-fs.target                                                                             loaded    inactive dead      Initrd File Systems
  initrd-root-device.target                                                                    loaded    inactive dead      Initrd Root Device
  initrd-root-fs.target                                                                        loaded    inactive dead      Initrd Root File System
  initrd-switch-root.target                                                                    loaded    inactive dead      Switch Root
  initrd-usr-fs.target                                                                         loaded    inactive dead      Initrd /usr File System
  initrd.target                                                                                loaded    inactive dead      Initrd Default Target
  integritysetup.target                                                                        loaded    active   active    Local Integrity Protected Volumes
  local-fs-pre.target                                                                          loaded    active   active    Preparation for Local File Systems
  local-fs.target                                                                              loaded    active   active    Local File Systems
  multi-user.target                                                                            loaded    active   active    Multi-User System
  network-online.target                                                                        loaded    active   active    Network is Online
  network-pre.target                                                                           loaded    active   active    Preparation for Network
  network.target                                                                               loaded    active   active    Network
  nss-lookup.target                                                                            loaded    inactive dead      Host and Network Name Lookups
  nss-user-lookup.target                                                                       loaded    inactive dead      User and Group Name Lookups
  paths.target                                                                                 loaded    active   active    Path Units
  remote-cryptsetup.target                                                                     loaded    inactive dead      Remote Encrypted Volumes
  remote-fs-pre.target                                                                         loaded    inactive dead      Preparation for Remote File Systems
  remote-fs.target                                                                             loaded    active   active    Remote File Systems
  remote-veritysetup.target                                                                    loaded    inactive dead      Remote Verity Protected Volumes
  rescue.target                                                                                loaded    inactive dead      Rescue Mode
  shutdown.target                                                                              loaded    inactive dead      System Shutdown
  slices.target                                                                                loaded    active   active    Slice Units
  sockets.target                                                                               loaded    active   active    Socket Units
  swap.target                                                                                  loaded    active   active    Swaps
  sysinit.target                                                                               loaded    active   active    System Initialization
  time-set.target                                                                              loaded    active   active    System Time Set
  time-sync.target                                                                             loaded    inactive dead      System Time Synchronized
  timers.target                                                                                loaded    active   active    Timer Units
  umount.target                                                                                loaded    inactive dead      Unmount All Filesystems
  veritysetup-pre.target                                                                       loaded    inactive dead      Local Verity Protected Volumes (Pre)
  veritysetup.target                                                                           loaded    active   active    Local Verity Protected Volumes                                                     
  archlinux-keyring-wkd-sync.timer                                                             loaded    active   waiting   Refresh existing PGP keys of archlinux-keyring regularly
  arma3modupdate.timer                                                                         loaded    active   waiting   Start ArmA 3 mods update every day at 12:00:00
  pmlogger_check.timer                                                                         loaded    active   waiting   Half-hourly check of pmlogger instances
  pmlogger_daily.timer                                                                         loaded    active   waiting   Daily processing of archive logs
  pmlogger_farm_check.timer                                                                    loaded    active   waiting   Half-hourly check of pmlogger farm instances
  shadow.timer                                                                                 loaded    active   waiting   Daily verification of password and group files
  systemd-tmpfiles-clean.timer                                                                 loaded    active   waiting   Daily Cleanup of Temporary Directories

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
347 loaded units listed.
To show all installed unit files use 'systemctl list-unit-files'.

As you can see, I also have a `arma3server@OpEx.service` instance, which works perfectly and is not due to an error.

Here is the output of

find /etc/systemd/ ! -name '*.conf' -type f -o -type l
/etc/systemd/user/sockets.target.wants/p11-kit-server.socket
/etc/systemd/network/10-enp7s0.network
/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service
/etc/systemd/system/arma3modupdate.timer
/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service
/etc/systemd/system/arma3server@.service
/etc/systemd/system/getty.target.wants/getty@tty1.service
/etc/systemd/system/timers.target.wants/arma3modupdate.timer
/etc/systemd/system/arma3modupdate.service
/etc/systemd/system/dbus-org.freedesktop.timesync1.service
/etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service
/etc/systemd/system/sysinit.target.wants/haveged.service
/etc/systemd/system/multi-user.target.wants/remote-fs.target
/etc/systemd/system/multi-user.target.wants/arma3server@OpEx.service
/etc/systemd/system/multi-user.target.wants/NetworkManager.service
/etc/systemd/system/multi-user.target.wants/firewalld.service
/etc/systemd/system/multi-user.target.wants/teamspeak3-server.service
/etc/systemd/system/multi-user.target.wants/sshd.service
/etc/systemd/system/multi-user.target.wants/pmlogger.service
/etc/systemd/system/multi-user.target.wants/cronie.service
/etc/systemd/system/network-online.target.wants/NetworkManager-wait-online.service
/etc/systemd/system/ArmaReforgerServer@.service
/etc/systemd/system/sockets.target.wants/cockpit.socket
/etc/systemd/system/sockets.target.wants/podman.socket

This only lists the template and not the instances, so I can't delete superfluous instances.

Here is the status of the faulty instance:

○ arma3server@arma3modupdate.service - ArmA 3 Server
     Loaded: loaded (/etc/systemd/system/arma3server@.service; disabled; preset: disabled)
     Active: inactive (dead)

Finally, here's the list of Cockpit services.
Screenshot-20230703-105206.png

Last edited by Artyom (2023-07-03 09:04:56)

Offline

#4 2023-07-05 05:29:25

Artyom
Member
Registered: 2017-03-27
Posts: 68

Re: Remove unwanted systemd template instances

So today I tried this:

systemctl stop [service name]
systemctl disable [service name]
rm /etc/systemd/system/[service name]
rm /etc/systemd/system/[servicename] # and symbolic links that could be linked to it
rm /usr/lib/systemd/system/[service name] # and symbolic links that could be linked 
rm /usr/lib/systemd/system/[servicename] # and any symbolic links that may be linked to it
systemctl daemon-reload
systemctl reset-failed

Unfortunately, this doesn't work.
`arma3server@arma3modupdate.service` always appears.
I haven't found anything that refers to this kind of problem.

Offline

#5 2023-07-05 05:52:01

seth
Member
Registered: 2012-09-03
Posts: 58,303

Re: Remove unwanted systemd template instances

systemctl show arma3server@arma3modupdate.service | grep Fragment
systemctl --user show arma3server@arma3modupdate.service | grep Fragment

Online

#6 2023-07-05 06:28:50

Artyom
Member
Registered: 2017-03-27
Posts: 68

Re: Remove unwanted systemd template instances

seth wrote:
systemctl show arma3server@arma3modupdate.service | grep Fragment
systemctl --user show arma3server@arma3modupdate.service | grep Fragment
systemctl show arma3server@arma3modupdate.service | grep Fragment
FragmentPath=/etc/systemd/system/arma3server@.service

systemctl --user show arma3server@arma3modupdate.service | grep Fragment
Failed to connect to bus: No medium found

I've test the `--user` one with both my user and the user that did the first mistake, the result is the same.

Just in case, here is the unit template file:

cat /etc/systemd/system/arma3server@.service
[Unit]
Description=ArmA 3 Server
After=network-online.target
Wants=network-online.target
Conflicts=arma3modupdate.service

[Service]
Type=simple
User=steam
Group=steam
WorkingDirectory=/home/steam/ArmA_3
ExecStartPre=/home/steam/ArmA_3/arma3server_update.sh
#ExecStartPre=/home/steam/ArmA_3/arma3mod_update.sh
ExecStart=/home/steam/ArmA_3/arma3server_start.sh %i
TimeoutStartSec=infinity

# Hardening options
CapabilityBoundingSet=
AmbientCapabilities=
NoNewPrivileges=true
#ProtectHome=true
ProtectSystem=full
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
PrivateTmp=true
LockPersonality=true

[Install]
WantedBy=multi-user.target

Offline

#7 2023-07-05 07:11:02

seth
Member
Registered: 2012-09-03
Posts: 58,303

Re: Remove unwanted systemd template instances

So there's no weird-ass-named non-template service in the way but the service actually exists as system… service.
Possibly a stale override:

find /etc/systemd/

Online

#8 2023-07-05 14:50:11

Artyom
Member
Registered: 2017-03-27
Posts: 68

Re: Remove unwanted systemd template instances

Here is the result

find /etc/systemd
/etc/systemd
/etc/systemd/sleep.conf
/etc/systemd/journald.conf
/etc/systemd/user
/etc/systemd/user/sockets.target.wants
/etc/systemd/user/sockets.target.wants/p11-kit-server.socket
/etc/systemd/network
/etc/systemd/network/10-enp7s0.network
/etc/systemd/coredump.conf
/etc/systemd/networkd.conf
/etc/systemd/pstore.conf
/etc/systemd/journal-upload.conf
/etc/systemd/system.conf
/etc/systemd/logind.conf
/etc/systemd/user.conf
/etc/systemd/journal-remote.conf
/etc/systemd/timesyncd.conf
/etc/systemd/timesyncd.conf.d
/etc/systemd/timesyncd.conf.d/hetzner.conf
/etc/systemd/timesyncd.conf.d/50-cockpit.conf
/etc/systemd/system
/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service
/etc/systemd/system/arma3modupdate.timer
/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service
/etc/systemd/system/arma3server@.service
/etc/systemd/system/getty.target.wants
/etc/systemd/system/getty.target.wants/getty@tty1.service
/etc/systemd/system/cockpit.socket.d
/etc/systemd/system/cockpit.socket.d/listen.conf
/etc/systemd/system/timers.target.wants
/etc/systemd/system/timers.target.wants/arma3modupdate.timer
/etc/systemd/system/arma3modupdate.service
/etc/systemd/system/mdcheck_start.timer.d
/etc/systemd/system/mdcheck_start.timer.d/hetzner.conf
/etc/systemd/system/dbus-org.freedesktop.timesync1.service
/etc/systemd/system/sysinit.target.wants
/etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service
/etc/systemd/system/sysinit.target.wants/haveged.service
/etc/systemd/system/multi-user.target.wants
/etc/systemd/system/multi-user.target.wants/remote-fs.target
/etc/systemd/system/multi-user.target.wants/arma3server@OpEx.service
/etc/systemd/system/multi-user.target.wants/NetworkManager.service
/etc/systemd/system/multi-user.target.wants/firewalld.service
/etc/systemd/system/multi-user.target.wants/teamspeak3-server.service
/etc/systemd/system/multi-user.target.wants/sshd.service
/etc/systemd/system/multi-user.target.wants/pmlogger.service
/etc/systemd/system/multi-user.target.wants/cronie.service
/etc/systemd/system/network-online.target.wants
/etc/systemd/system/network-online.target.wants/NetworkManager-wait-online.service
/etc/systemd/system/ArmaReforgerServer@.service
/etc/systemd/system/sockets.target.wants
/etc/systemd/system/sockets.target.wants/cockpit.socket
/etc/systemd/system/sockets.target.wants/podman.socket
/etc/systemd/resolved.conf
/etc/systemd/homed.conf
/etc/systemd/oomd.conf

Everything that should be here is, but the 'arma3server@arma3update' isn't.

Also, I've noticed that some other instances name sush as 'arma3server@dev' 'arma3server@MF' arma3server@Warhammer' that where used at some point are not listed as wished.
So my analysis is that something must call for the 'arma3server@arma3update'.

Offline

#9 2023-07-05 14:56:35

seth
Member
Registered: 2012-09-03
Posts: 58,303

Re: Remove unwanted systemd template instances

systemctl show arma3server@grumpf.service | grep Fragment
find /usr/lib/systemd -iname '*arma3*'

Online

#10 2023-07-05 15:22:23

Artyom
Member
Registered: 2017-03-27
Posts: 68

Re: Remove unwanted systemd template instances

systemctl show arma3server@grumpf.service | grep Fragment
FragmentPath=/etc/systemd/system/arma3server@.service
find /usr/lib/systemd -iname '*arma3*'
#return nothing
find /usr/lib/systemd
/usr/lib/systemd
/usr/lib/systemd/systemd
/usr/lib/systemd/systemd-udevd
/usr/lib/systemd/systemd-remount-fs
/usr/lib/systemd/systemd-coredump
/usr/lib/systemd/user
/usr/lib/systemd/user/exit.target
/usr/lib/systemd/user/systemd-exit.service
/usr/lib/systemd/user/sockets.target
/usr/lib/systemd/user/shutdown.target
/usr/lib/systemd/user/dconf.service
/usr/lib/systemd/user/glib-pacrunner.service
/usr/lib/systemd/user/dirmngr.socket
/usr/lib/systemd/user/gpg-agent-extra.socket
/usr/lib/systemd/user/podman.service
/usr/lib/systemd/user/systemd-tmpfiles-setup.service
/usr/lib/systemd/user/default.target
/usr/lib/systemd/user/app.slice
/usr/lib/systemd/user/podman-kube@.service
/usr/lib/systemd/user/dirmngr.service
/usr/lib/systemd/user/p11-kit-server.service
/usr/lib/systemd/user/paths.target
/usr/lib/systemd/user/smartcard.target
/usr/lib/systemd/user/dbus.socket
/usr/lib/systemd/user/gpg-agent.socket
/usr/lib/systemd/user/dbus.service
/usr/lib/systemd/user/systemd-tmpfiles-clean.timer
/usr/lib/systemd/user/graphical-session-pre.target
/usr/lib/systemd/user/podman.socket
/usr/lib/systemd/user/bluetooth.target
/usr/lib/systemd/user/podman-restart.service
/usr/lib/systemd/user/timers.target
/usr/lib/systemd/user/gpg-agent.service
/usr/lib/systemd/user/p11-kit-server.socket
/usr/lib/systemd/user/session.slice
/usr/lib/systemd/user/graphical-session.target
/usr/lib/systemd/user/gpg-agent-ssh.socket
/usr/lib/systemd/user/xdg-desktop-autostart.target
/usr/lib/systemd/user/podman-auto-update.timer
/usr/lib/systemd/user/background.slice
/usr/lib/systemd/user/printer.target
/usr/lib/systemd/user/sound.target
/usr/lib/systemd/user/gpg-agent-browser.socket
/usr/lib/systemd/user/podman-auto-update.service
/usr/lib/systemd/user/systemd-tmpfiles-clean.service
/usr/lib/systemd/user/sockets.target.wants
/usr/lib/systemd/user/sockets.target.wants/dirmngr.socket
/usr/lib/systemd/user/sockets.target.wants/gpg-agent-extra.socket
/usr/lib/systemd/user/sockets.target.wants/dbus.socket
/usr/lib/systemd/user/sockets.target.wants/gpg-agent.socket
/usr/lib/systemd/user/sockets.target.wants/gpg-agent-ssh.socket
/usr/lib/systemd/user/sockets.target.wants/gpg-agent-browser.socket
/usr/lib/systemd/user/basic.target
/usr/lib/systemd/network
/usr/lib/systemd/network/80-ethernet.network.example
/usr/lib/systemd/network/80-wifi-station.network.example
/usr/lib/systemd/network/80-container-ve.network
/usr/lib/systemd/network/80-wifi-adhoc.network
/usr/lib/systemd/network/80-container-vz.network
/usr/lib/systemd/network/99-default.link
/usr/lib/systemd/network/80-wifi-ap.network.example
/usr/lib/systemd/network/80-container-vb.network
/usr/lib/systemd/network/80-container-host0.network
/usr/lib/systemd/network/80-6rd-tunnel.network
/usr/lib/systemd/network/80-vm-vt.network
/usr/lib/systemd/systemd-sysctl
/usr/lib/systemd/systemd-portabled
/usr/lib/systemd/systemd-backlight
/usr/lib/systemd/systemd-xdg-autostart-condition
/usr/lib/systemd/systemd-measure
/usr/lib/systemd/systemd-machined
/usr/lib/systemd/systemd-timedated
/usr/lib/systemd/systemd-localed
/usr/lib/systemd/systemd-sleep
/usr/lib/systemd/systemd-sysupdate
/usr/lib/systemd/resolv.conf
/usr/lib/systemd/systemd-veritysetup
/usr/lib/systemd/systemd-homed
/usr/lib/systemd/libsystemd-core-253.5-2.so
/usr/lib/systemd/systemd-hibernate-resume
/usr/lib/systemd/systemd-quotacheck
/usr/lib/systemd/systemd-importd
/usr/lib/systemd/ntp-units.d
/usr/lib/systemd/ntp-units.d/80-systemd-timesync.list
/usr/lib/systemd/systemd-pstore
/usr/lib/systemd/systemd-user-sessions
/usr/lib/systemd/scripts
/usr/lib/systemd/scripts/iptables-flush
/usr/lib/systemd/systemd-journal-upload
/usr/lib/systemd/systemd-networkd-wait-online
/usr/lib/systemd/user-generators
/usr/lib/systemd/user-generators/podman-user-generator
/usr/lib/systemd/user-generators/systemd-xdg-autostart-generator
/usr/lib/systemd/systemd-userwork
/usr/lib/systemd/system-generators
/usr/lib/systemd/system-generators/systemd-gpt-auto-generator
/usr/lib/systemd/system-generators/systemd-fstab-generator
/usr/lib/systemd/system-generators/podman-system-generator
/usr/lib/systemd/system-generators/systemd-getty-generator
/usr/lib/systemd/system-generators/systemd-integritysetup-generator
/usr/lib/systemd/system-generators/systemd-hibernate-resume-generator
/usr/lib/systemd/system-generators/systemd-debug-generator
/usr/lib/systemd/system-generators/systemd-run-generator
/usr/lib/systemd/system-generators/systemd-system-update-generator
/usr/lib/systemd/system-generators/systemd-bless-boot-generator
/usr/lib/systemd/system-generators/systemd-cryptsetup-generator
/usr/lib/systemd/system-generators/systemd-veritysetup-generator
/usr/lib/systemd/systemd-volatile-root
/usr/lib/systemd/systemd-resolved
/usr/lib/systemd/systemd-socket-proxyd
/usr/lib/systemd/systemd-fsck
/usr/lib/systemd/systemd-rfkill
/usr/lib/systemd/systemd-modules-load
/usr/lib/systemd/systemd-user-runtime-dir
/usr/lib/systemd/systemd-pull
/usr/lib/systemd/systemd-journal-gatewayd
/usr/lib/systemd/system-environment-generators
/usr/lib/systemd/system-environment-generators/10-arch
/usr/lib/systemd/systemd-userdbd
/usr/lib/systemd/systemd-homework
/usr/lib/systemd/systemd-binfmt
/usr/lib/systemd/systemd-journald
/usr/lib/systemd/systemd-logind
/usr/lib/systemd/portable
/usr/lib/systemd/portable/profile
/usr/lib/systemd/portable/profile/nonetwork
/usr/lib/systemd/portable/profile/nonetwork/service.conf
/usr/lib/systemd/portable/profile/trusted
/usr/lib/systemd/portable/profile/trusted/service.conf
/usr/lib/systemd/portable/profile/default
/usr/lib/systemd/portable/profile/default/service.conf
/usr/lib/systemd/portable/profile/strict
/usr/lib/systemd/portable/profile/strict/service.conf
/usr/lib/systemd/user-environment-generators
/usr/lib/systemd/user-environment-generators/30-systemd-environment-d-generator
/usr/lib/systemd/systemd-import-fs
/usr/lib/systemd/systemd-export
/usr/lib/systemd/systemd-network-generator
/usr/lib/systemd/systemd-growfs
/usr/lib/systemd/systemd-cryptsetup
/usr/lib/systemd/systemd-journal-remote
/usr/lib/systemd/systemd-networkd
/usr/lib/systemd/systemd-pcrphase
/usr/lib/systemd/systemd-reply-password
/usr/lib/systemd/system-sleep
/usr/lib/systemd/systemd-integritysetup
/usr/lib/systemd/systemd-vconsole-setup
/usr/lib/systemd/import-pubring.gpg
/usr/lib/systemd/systemd-shutdown
/usr/lib/systemd/systemd-random-seed
/usr/lib/systemd/systemd-update-done
/usr/lib/systemd/user-preset
/usr/lib/systemd/user-preset/90-systemd.preset
/usr/lib/systemd/systemd-makefs
/usr/lib/systemd/systemd-time-wait-sync
/usr/lib/systemd/systemd-update-utmp
/usr/lib/systemd/systemd-cgroups-agent
/usr/lib/systemd/system-shutdown
/usr/lib/systemd/system-shutdown/mdadm.shutdown
/usr/lib/systemd/systemd-timesyncd
/usr/lib/systemd/system
/usr/lib/systemd/system/multi-user.target
/usr/lib/systemd/system/cockpit-wsinstance-https@.service
/usr/lib/systemd/system/systemd-reboot.service
/usr/lib/systemd/system/systemd-ask-password-console.path
/usr/lib/systemd/system/remote-fs.target
/usr/lib/systemd/system/systemd-journald@.service
/usr/lib/systemd/system/autovt@.service
/usr/lib/systemd/system/git-daemon.socket
/usr/lib/systemd/system/system-systemd\x2dcryptsetup.slice
/usr/lib/systemd/system/iptables.service
/usr/lib/systemd/system/pmie_farm.service
/usr/lib/systemd/system/mdmonitor.service
/usr/lib/systemd/system/rlogin@.service
/usr/lib/systemd/system/e2scrub_fail@.service
/usr/lib/systemd/system/dnsmasq.service
/usr/lib/systemd/system/initrd-switch-root.service
/usr/lib/systemd/system/var-lib-machines.mount
/usr/lib/systemd/system/shutdown.target.wants
/usr/lib/systemd/system/shutdown.target.wants/mkinitcpio-generate-shutdown-ramfs.service
/usr/lib/systemd/system/exit.target
/usr/lib/systemd/system/systemd-coredump@.service
/usr/lib/systemd/system/rsyncd.socket
/usr/lib/systemd/system/systemd-exit.service
/usr/lib/systemd/system/blk-availability.service
/usr/lib/systemd/system/cxl-monitor.service
/usr/lib/systemd/system/systemd-boot-update.service
/usr/lib/systemd/system/pmie_check.service
/usr/lib/systemd/system/initrd-root-fs.target.wants
/usr/lib/systemd/system/initrd-root-fs.target.wants/systemd-repart.service
/usr/lib/systemd/system/NetworkManager.service
/usr/lib/systemd/system/systemd-bless-boot.service
/usr/lib/systemd/system/slices.target
/usr/lib/systemd/system/rfkill-unblock@.service
/usr/lib/systemd/system/systemd-update-utmp.service
/usr/lib/systemd/system/cockpit-motd.service
/usr/lib/systemd/system/umount.target
/usr/lib/systemd/system/user@0.service.d
/usr/lib/systemd/system/user@0.service.d/10-login-barrier.conf
/usr/lib/systemd/system/pmie.service
/usr/lib/systemd/system/polkit.service
/usr/lib/systemd/system/sockets.target
/usr/lib/systemd/system/shutdown.target
/usr/lib/systemd/system/systemd-nspawn@.service
/usr/lib/systemd/system/proc-sys-fs-binfmt_misc.mount
/usr/lib/systemd/system/e2scrub_all.timer
/usr/lib/systemd/system/system-update.target
/usr/lib/systemd/system/tmp.mount
/usr/lib/systemd/system/gpm.service
/usr/lib/systemd/system/hybrid-sleep.target
/usr/lib/systemd/system/pacman-filesdb-refresh.timer
/usr/lib/systemd/system/cockpit.service
/usr/lib/systemd/system/mdcheck_start.service
/usr/lib/systemd/system/krb5-kpropd@.service
/usr/lib/systemd/system/dbus-org.freedesktop.machine1.service
/usr/lib/systemd/system/systemd-networkd-wait-online@.service
/usr/lib/systemd/system/system-update.target.wants
/usr/lib/systemd/system/system-update.target.wants/packagekit-offline-update.service
/usr/lib/systemd/system/network-pre.target
/usr/lib/systemd/system/system-update-pre.target
/usr/lib/systemd/system/firewalld.service
/usr/lib/systemd/system/system-update-cleanup.service
/usr/lib/systemd/system/nss-user-lookup.target
/usr/lib/systemd/system/pmlogger_farm_check.timer
/usr/lib/systemd/system/cockpit-wsinstance-https-factory@.service
/usr/lib/systemd/system/teamspeak3-server.service
/usr/lib/systemd/system/krb5-kpropd.socket
/usr/lib/systemd/system/systemd-udev-settle.service
/usr/lib/systemd/system/usb-gadget.target
/usr/lib/systemd/system/local-fs.target
/usr/lib/systemd/system/systemd-logind.service
/usr/lib/systemd/system/veritysetup.target
/usr/lib/systemd/system/wpa_supplicant-wired@.service
/usr/lib/systemd/system/cockpit-session.socket
/usr/lib/systemd/system/pmie_check.timer
/usr/lib/systemd/system/systemd-localed.service
/usr/lib/systemd/system/btrfs-scrub@.service
/usr/lib/systemd/system/remote-fs-pre.target
/usr/lib/systemd/system/initrd-root-device.target.wants
/usr/lib/systemd/system/initrd-root-device.target.wants/remote-veritysetup.target
/usr/lib/systemd/system/initrd-root-device.target.wants/remote-cryptsetup.target
/usr/lib/systemd/system/mdcheck_continue.timer
/usr/lib/systemd/system/packagekit-offline-update.service
/usr/lib/systemd/system/dbus-org.freedesktop.import1.service
/usr/lib/systemd/system/podman.service
/usr/lib/systemd/system/suspend.target
/usr/lib/systemd/system/netavark-dhcp-proxy.service
/usr/lib/systemd/system/initrd-usr-fs.target
/usr/lib/systemd/system/xfs_scrub_all.service
/usr/lib/systemd/system/reboot.target
/usr/lib/systemd/system/systemd-udevd-kernel.socket
/usr/lib/systemd/system/initrd-udevadm-cleanup-db.service
/usr/lib/systemd/system/systemd-timesyncd.service
/usr/lib/systemd/system/archlinux-keyring-wkd-sync.timer
/usr/lib/systemd/system/systemd-importd.service
/usr/lib/systemd/system/quotaon.service
/usr/lib/systemd/system/systemd-boot-check-no-failures.service
/usr/lib/systemd/system/cryptsetup.target
/usr/lib/systemd/system/systemd-repart.service
/usr/lib/systemd/system/sys-kernel-debug.mount
/usr/lib/systemd/system/serial-getty@.service
/usr/lib/systemd/system/lvm2-lvmpolld.socket
/usr/lib/systemd/system/systemd-pcrphase.service
/usr/lib/systemd/system/halt.target
/usr/lib/systemd/system/initrd.target
/usr/lib/systemd/system/sshd.service
/usr/lib/systemd/system/shadow.timer
/usr/lib/systemd/system/sys-kernel-tracing.mount
/usr/lib/systemd/system/wpa_supplicant-nl80211@.service
/usr/lib/systemd/system/pmlogger.service
/usr/lib/systemd/system/systemd-journal-remote.socket
/usr/lib/systemd/system/dm-event.service
/usr/lib/systemd/system/systemd-tmpfiles-setup.service
/usr/lib/systemd/system/local-fs.target.wants
/usr/lib/systemd/system/local-fs.target.wants/tmp.mount
/usr/lib/systemd/system/packagekit.service
/usr/lib/systemd/system/systemd-tmpfiles-setup-dev.service
/usr/lib/systemd/system/systemd-journal-catalog-update.service
/usr/lib/systemd/system/systemd-networkd.socket
/usr/lib/systemd/system/mdadm-grow-continue@.service
/usr/lib/systemd/system/cockpit-wsinstance-https@.socket
/usr/lib/systemd/system/teamd@.service
/usr/lib/systemd/system/pacman-filesdb-refresh.service
/usr/lib/systemd/system/systemd-sysusers.service
/usr/lib/systemd/system/krb5-kdc.service
/usr/lib/systemd/system/dev-hugepages.mount
/usr/lib/systemd/system/user@.service.d
/usr/lib/systemd/system/user@.service.d/10-login-barrier.conf
/usr/lib/systemd/system/console-getty.service
/usr/lib/systemd/system/systemd-sysupdate.service
/usr/lib/systemd/system/sshdgenkeys.service
/usr/lib/systemd/system/systemd-pcrfs@.service
/usr/lib/systemd/system/initrd-parse-etc.service
/usr/lib/systemd/system/systemd-udev-trigger.service
/usr/lib/systemd/system/default.target
/usr/lib/systemd/system/network-online.target
/usr/lib/systemd/system/pmfind.timer
/usr/lib/systemd/system/systemd-kexec.service
/usr/lib/systemd/system/git-daemon@.service
/usr/lib/systemd/system/systemd-update-done.service
/usr/lib/systemd/system/gpm.path
/usr/lib/systemd/system/netavark-dhcp-proxy.socket
/usr/lib/systemd/system/systemd-user-sessions.service
/usr/lib/systemd/system/sudo_logsrvd.service
/usr/lib/systemd/system/boot-complete.target
/usr/lib/systemd/system/systemd-journald@.socket
/usr/lib/systemd/system/systemd-time-wait-sync.service
/usr/lib/systemd/system/systemd-portabled.service
/usr/lib/systemd/system/systemd-journal-upload.service
/usr/lib/systemd/system/modprobe@.service
/usr/lib/systemd/system/mdcheck_continue.service
/usr/lib/systemd/system/dbus-org.freedesktop.hostname1.service
/usr/lib/systemd/system/nss-lookup.target
/usr/lib/systemd/system/systemd-udevd-control.socket
/usr/lib/systemd/system/paccache.service
/usr/lib/systemd/system/cronie.service
/usr/lib/systemd/system/mdmonitor-oneshot.service
/usr/lib/systemd/system/initrd-root-device.target
/usr/lib/systemd/system/telnet.socket
/usr/lib/systemd/system/podman-kube@.service
/usr/lib/systemd/system/systemd-hibernate.service
/usr/lib/systemd/system/systemd-pcrfs-root.service
/usr/lib/systemd/system/systemd-journald-audit.socket
/usr/lib/systemd/system/systemd-journald.service
/usr/lib/systemd/system/systemd-halt.service
/usr/lib/systemd/system/systemd-random-seed.service
/usr/lib/systemd/system/pmie_farm_check.timer
/usr/lib/systemd/system/cockpit.socket
/usr/lib/systemd/system/cryptsetup-pre.target
/usr/lib/systemd/system/systemd-binfmt.service
/usr/lib/systemd/system/getty.target
/usr/lib/systemd/system/systemd-pcrphase-sysinit.service
/usr/lib/systemd/system/cockpit-wsinstance-http.socket
/usr/lib/systemd/system/systemd-resolved.service
/usr/lib/systemd/system/systemd-suspend-then-hibernate.service
/usr/lib/systemd/system/lvm2-lvmpolld.service
/usr/lib/systemd/system/initrd.target.wants
/usr/lib/systemd/system/initrd.target.wants/systemd-pcrphase-initrd.service
/usr/lib/systemd/system/sysinit.target
/usr/lib/systemd/system/e2scrub_reap.service
/usr/lib/systemd/system/systemd-sysctl.service
/usr/lib/systemd/system/dbus-org.freedesktop.timedate1.service
/usr/lib/systemd/system/systemd-rfkill.service
/usr/lib/systemd/system/uuidd.service
/usr/lib/systemd/system/systemd-homed-activate.service
/usr/lib/systemd/system/krb5-kadmind.service
/usr/lib/systemd/system/user-.slice.d
/usr/lib/systemd/system/user-.slice.d/10-defaults.conf
/usr/lib/systemd/system/talk.socket
/usr/lib/systemd/system/local-fs-pre.target
/usr/lib/systemd/system/machines.target.wants
/usr/lib/systemd/system/machines.target.wants/var-lib-machines.mount
/usr/lib/systemd/system/systemd-firstboot.service
/usr/lib/systemd/system/systemd-remount-fs.service
/usr/lib/systemd/system/paccache.timer
/usr/lib/systemd/system/first-boot-complete.target
/usr/lib/systemd/system/sigpwr.target
/usr/lib/systemd/system/ftpd.service
/usr/lib/systemd/system/initrd-fs.target
/usr/lib/systemd/system/ip6tables.service
/usr/lib/systemd/system/systemd-backlight@.service
/usr/lib/systemd/system/paths.target
/usr/lib/systemd/system/haveged.service
/usr/lib/systemd/system/rpcbind.target
/usr/lib/systemd/system/smartcard.target
/usr/lib/systemd/system/xfs_scrub_fail@.service
/usr/lib/systemd/system/xfs_scrub@.service
/usr/lib/systemd/system/systemd-fsck@.service
/usr/lib/systemd/system/e2scrub_all.service
/usr/lib/systemd/system/initrd-switch-root.target
/usr/lib/systemd/system/avahi-daemon.socket
/usr/lib/systemd/system/pmfind.service
/usr/lib/systemd/system/dbus.socket
/usr/lib/systemd/system/mdcheck_start.timer
/usr/lib/systemd/system/daxdev-reconfigure@.service
/usr/lib/systemd/system/hibernate.target
/usr/lib/systemd/system/dm-event.socket
/usr/lib/systemd/system/archlinux-keyring-wkd-sync.service
/usr/lib/systemd/system/systemd-journald-dev-log.socket
/usr/lib/systemd/system/systemd-sysupdate.timer
/usr/lib/systemd/system/sleep.target
/usr/lib/systemd/system/debug-shell.service
/usr/lib/systemd/system/accounts-daemon.service
/usr/lib/systemd/system/pmlogger_daily.service
/usr/lib/systemd/system/time-set.target
/usr/lib/systemd/system/pcscd.service
/usr/lib/systemd/system/podman-clean-transient.service
/usr/lib/systemd/system/auditd.service
/usr/lib/systemd/system/proc-sys-fs-binfmt_misc.automount
/usr/lib/systemd/system/pcscd.socket
/usr/lib/systemd/system/integritysetup.target
/usr/lib/systemd/system/rescue.service
/usr/lib/systemd/system/systemd-volatile-root.service
/usr/lib/systemd/system/systemd-sysext.service
/usr/lib/systemd/system/emergency.target
/usr/lib/systemd/system/fstrim.service
/usr/lib/systemd/system/dbus-org.freedesktop.portable1.service
/usr/lib/systemd/system/container-getty@.service
/usr/lib/systemd/system/dbus.service
/usr/lib/systemd/system/timers.target.wants
/usr/lib/systemd/system/timers.target.wants/archlinux-keyring-wkd-sync.timer
/usr/lib/systemd/system/timers.target.wants/shadow.timer
/usr/lib/systemd/system/timers.target.wants/systemd-tmpfiles-clean.timer
/usr/lib/systemd/system/sys-fs-fuse-connections.mount
/usr/lib/systemd/system/haveged-once.service
/usr/lib/systemd/system/systemd-tmpfiles-clean.timer
/usr/lib/systemd/system/systemd-journal-flush.service
/usr/lib/systemd/system/dbus-org.freedesktop.login1.service
/usr/lib/systemd/system/cockpit-wsinstance-https-factory.socket
/usr/lib/systemd/system/user.slice
/usr/lib/systemd/system/user@.service
/usr/lib/systemd/system/systemd-hibernate-resume@.service
/usr/lib/systemd/system/pmlogger_check.timer
/usr/lib/systemd/system/machines.target
/usr/lib/systemd/system/systemd-boot-random-seed.service
/usr/lib/systemd/system/systemd-network-generator.service
/usr/lib/systemd/system/getty-pre.target
/usr/lib/systemd/system/fstrim.timer
/usr/lib/systemd/system/systemd-hostnamed.service
/usr/lib/systemd/system/wpa_supplicant@.service
/usr/lib/systemd/system/systemd-ask-password-console.service
/usr/lib/systemd/system/nm-priv-helper.service
/usr/lib/systemd/system/ctrl-alt-del.target
/usr/lib/systemd/system/systemd-userdbd.socket
/usr/lib/systemd/system/systemd-ask-password-wall.service
/usr/lib/systemd/system/wpa_supplicant.service
/usr/lib/systemd/system/system-cockpithttps.slice
/usr/lib/systemd/system/systemd-growfs@.service
/usr/lib/systemd/system/sys-kernel-config.mount
/usr/lib/systemd/system/pmie_daily.service
/usr/lib/systemd/system/podman.socket
/usr/lib/systemd/system/rsh.socket
/usr/lib/systemd/system/mdadm-last-resort@.service
/usr/lib/systemd/system/systemd-journald.socket
/usr/lib/systemd/system/kmod-static-nodes.service
/usr/lib/systemd/system/xfs_scrub_all.timer
/usr/lib/systemd/system/pmlogger_daily.timer
/usr/lib/systemd/system/systemd-coredump.socket
/usr/lib/systemd/system/systemd-oomd.socket
/usr/lib/systemd/system/pmlogger_farm.service
/usr/lib/systemd/system/remote-fs.target.wants
/usr/lib/systemd/system/remote-fs.target.wants/var-lib-machines.mount
/usr/lib/systemd/system/systemd-poweroff.service
/usr/lib/systemd/system/bluetooth.target
/usr/lib/systemd/system/podman-restart.service
/usr/lib/systemd/system/initrd-cleanup.service
/usr/lib/systemd/system/systemd-fsck-root.service
/usr/lib/systemd/system/timers.target
/usr/lib/systemd/system/systemd-machine-id-commit.service
/usr/lib/systemd/system/avahi-dnsconfd.service
/usr/lib/systemd/system/pmcd.service
/usr/lib/systemd/system/pmlogger_farm_check.service
/usr/lib/systemd/system/nscd.service
/usr/lib/systemd/system/avahi-daemon.service
/usr/lib/systemd/system/factory-reset.target
/usr/lib/systemd/system/sysinit.target.wants
/usr/lib/systemd/system/sysinit.target.wants/systemd-ask-password-console.path
/usr/lib/systemd/system/sysinit.target.wants/systemd-update-utmp.service
/usr/lib/systemd/system/sysinit.target.wants/veritysetup.target
/usr/lib/systemd/system/sysinit.target.wants/cryptsetup.target
/usr/lib/systemd/system/sysinit.target.wants/systemd-repart.service
/usr/lib/systemd/system/sysinit.target.wants/sys-kernel-debug.mount
/usr/lib/systemd/system/sysinit.target.wants/lvm2-lvmpolld.socket
/usr/lib/systemd/system/sysinit.target.wants/systemd-pcrphase.service
/usr/lib/systemd/system/sysinit.target.wants/sys-kernel-tracing.mount
/usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup.service
/usr/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup-dev.service
/usr/lib/systemd/system/sysinit.target.wants/systemd-journal-catalog-update.service
/usr/lib/systemd/system/sysinit.target.wants/systemd-sysusers.service
/usr/lib/systemd/system/sysinit.target.wants/dev-hugepages.mount
/usr/lib/systemd/system/sysinit.target.wants/systemd-udev-trigger.service
/usr/lib/systemd/system/sysinit.target.wants/systemd-update-done.service
/usr/lib/systemd/system/sysinit.target.wants/systemd-journald.service
/usr/lib/systemd/system/sysinit.target.wants/systemd-random-seed.service
/usr/lib/systemd/system/sysinit.target.wants/systemd-binfmt.service
/usr/lib/systemd/system/sysinit.target.wants/systemd-pcrphase-sysinit.service
/usr/lib/systemd/system/sysinit.target.wants/systemd-sysctl.service
/usr/lib/systemd/system/sysinit.target.wants/systemd-firstboot.service
/usr/lib/systemd/system/sysinit.target.wants/proc-sys-fs-binfmt_misc.automount
/usr/lib/systemd/system/sysinit.target.wants/integritysetup.target
/usr/lib/systemd/system/sysinit.target.wants/sys-fs-fuse-connections.mount
/usr/lib/systemd/system/sysinit.target.wants/systemd-journal-flush.service
/usr/lib/systemd/system/sysinit.target.wants/systemd-boot-random-seed.service
/usr/lib/systemd/system/sysinit.target.wants/sys-kernel-config.mount
/usr/lib/systemd/system/sysinit.target.wants/kmod-static-nodes.service
/usr/lib/systemd/system/sysinit.target.wants/systemd-machine-id-commit.service
/usr/lib/systemd/system/sysinit.target.wants/systemd-pcrmachine.service
/usr/lib/systemd/system/sysinit.target.wants/lvm2-monitor.service
/usr/lib/systemd/system/sysinit.target.wants/ldconfig.service
/usr/lib/systemd/system/sysinit.target.wants/systemd-udevd.service
/usr/lib/systemd/system/sysinit.target.wants/systemd-modules-load.service
/usr/lib/systemd/system/sysinit.target.wants/systemd-hwdb-update.service
/usr/lib/systemd/system/sysinit.target.wants/dev-mqueue.mount
/usr/lib/systemd/system/systemd-pcrmachine.service
/usr/lib/systemd/system/systemd-journal-gatewayd.socket
/usr/lib/systemd/system/mkinitcpio-generate-shutdown-ramfs.service
/usr/lib/systemd/system/systemd-networkd.service
/usr/lib/systemd/system/NetworkManager-dispatcher.service
/usr/lib/systemd/system/btrfs-scrub@.timer
/usr/lib/systemd/system/rescue.target
/usr/lib/systemd/system/shadow.service
/usr/lib/systemd/system/cockpit-wsinstance-http.service
/usr/lib/systemd/system/systemd-sysupdate-reboot.service
/usr/lib/systemd/system/user-runtime-dir@.service
/usr/lib/systemd/system/systemd-sysupdate-reboot.timer
/usr/lib/systemd/system/remote-veritysetup.target
/usr/lib/systemd/system/systemd-pstore.service
/usr/lib/systemd/system/nftables.service
/usr/lib/systemd/system/systemd-ask-password-wall.path
/usr/lib/systemd/system/poweroff.target
/usr/lib/systemd/system/uuidd.socket
/usr/lib/systemd/system/pmie_farm_check.service
/usr/lib/systemd/system/systemd-journal-gatewayd.service
/usr/lib/systemd/system/machine.slice
/usr/lib/systemd/system/final.target
/usr/lib/systemd/system/time-sync.target
/usr/lib/systemd/system/rfkill-block@.service
/usr/lib/systemd/system/talk.service
/usr/lib/systemd/system/systemd-rfkill.socket
/usr/lib/systemd/system/getty@.service
/usr/lib/systemd/system/pmproxy.service
/usr/lib/systemd/system/systemd-suspend.service
/usr/lib/systemd/system/mdmon@.service
/usr/lib/systemd/system/systemd-hybrid-sleep.service
/usr/lib/systemd/system/graphical.target
/usr/lib/systemd/system/lvm2-monitor.service
/usr/lib/systemd/system/ldconfig.service
/usr/lib/systemd/system/podman-auto-update.timer
/usr/lib/systemd/system/systemd-homed.service
/usr/lib/systemd/system/multi-user.target.wants
/usr/lib/systemd/system/multi-user.target.wants/systemd-logind.service
/usr/lib/systemd/system/multi-user.target.wants/systemd-user-sessions.service
/usr/lib/systemd/system/multi-user.target.wants/getty.target
/usr/lib/systemd/system/multi-user.target.wants/dbus.service
/usr/lib/systemd/system/multi-user.target.wants/systemd-ask-password-wall.path
/usr/lib/systemd/system/systemd-journal-remote.service
/usr/lib/systemd/system/blockdev@.target
/usr/lib/systemd/system/dbus-org.freedesktop.locale1.service
/usr/lib/systemd/system/integritysetup-pre.target
/usr/lib/systemd/system/emergency.service
/usr/lib/systemd/system/pmlogger_check.service
/usr/lib/systemd/system/systemd-journald-varlink@.socket
/usr/lib/systemd/system/remote-cryptsetup.target
/usr/lib/systemd/system/printer.target
/usr/lib/systemd/system/systemd-quotacheck.service
/usr/lib/systemd/system/systemd-userdbd.service
/usr/lib/systemd/system/rlogin.socket
/usr/lib/systemd/system/kexec.target
/usr/lib/systemd/system/e2scrub@.service
/usr/lib/systemd/system/pmie_daily.timer
/usr/lib/systemd/system/sound.target
/usr/lib/systemd/system/telnet@.service
/usr/lib/systemd/system/ndctl-monitor.service
/usr/lib/systemd/system/suspend-then-hibernate.target
/usr/lib/systemd/system/rsyncd.service
/usr/lib/systemd/system/systemd-timedated.service
/usr/lib/systemd/system/initrd-root-fs.target
/usr/lib/systemd/system/rsh@.service
/usr/lib/systemd/system/podman-auto-update.service
/usr/lib/systemd/system/systemd-networkd-wait-online.service
/usr/lib/systemd/system/rsyncd@.service
/usr/lib/systemd/system/swap.target
/usr/lib/systemd/system/udisks2.service
/usr/lib/systemd/system/systemd-tmpfiles-clean.service
/usr/lib/systemd/system/systemd-udevd.service
/usr/lib/systemd/system/network.target
/usr/lib/systemd/system/krb5-kpropd.service
/usr/lib/systemd/system/systemd-oomd.service
/usr/lib/systemd/system/mdmonitor-oneshot.timer
/usr/lib/systemd/system/systemd-machined.service
/usr/lib/systemd/system/systemd-modules-load.service
/usr/lib/systemd/system/pam_namespace.service
/usr/lib/systemd/system/dmraid.service
/usr/lib/systemd/system/sockets.target.wants
/usr/lib/systemd/system/sockets.target.wants/systemd-udevd-kernel.socket
/usr/lib/systemd/system/sockets.target.wants/systemd-udevd-control.socket
/usr/lib/systemd/system/sockets.target.wants/dbus.socket
/usr/lib/systemd/system/sockets.target.wants/dm-event.socket
/usr/lib/systemd/system/sockets.target.wants/systemd-journald-dev-log.socket
/usr/lib/systemd/system/sockets.target.wants/systemd-journald.socket
/usr/lib/systemd/system/sockets.target.wants/systemd-coredump.socket
/usr/lib/systemd/system/mdadm-last-resort@.timer
/usr/lib/systemd/system/systemd-vconsole-setup.service
/usr/lib/systemd/system/syslog.socket
/usr/lib/systemd/system/NetworkManager-wait-online.service
/usr/lib/systemd/system/cockpit-session@.service
/usr/lib/systemd/system/systemd-hwdb-update.service
/usr/lib/systemd/system/systemd-pcrphase-initrd.service
/usr/lib/systemd/system/systemd-growfs-root.service
/usr/lib/systemd/system/veritysetup-pre.target
/usr/lib/systemd/system/dev-mqueue.mount
/usr/lib/systemd/system/basic.target
/usr/lib/systemd/catalog
/usr/lib/systemd/catalog/systemd.zh_CN.catalog
/usr/lib/systemd/catalog/systemd.pt_BR.catalog
/usr/lib/systemd/catalog/systemd.bg.catalog
/usr/lib/systemd/catalog/systemd.it.catalog
/usr/lib/systemd/catalog/systemd.hu.catalog
/usr/lib/systemd/catalog/systemd.sr.catalog
/usr/lib/systemd/catalog/systemd.hr.catalog
/usr/lib/systemd/catalog/systemd.ru.catalog
/usr/lib/systemd/catalog/systemd.da.catalog
/usr/lib/systemd/catalog/systemd.fr.catalog
/usr/lib/systemd/catalog/systemd.be@latin.catalog
/usr/lib/systemd/catalog/systemd.zh_TW.catalog
/usr/lib/systemd/catalog/systemd.be.catalog
/usr/lib/systemd/catalog/systemd.catalog
/usr/lib/systemd/catalog/systemd.pl.catalog
/usr/lib/systemd/catalog/systemd.de.catalog
/usr/lib/systemd/catalog/systemd.ko.catalog
/usr/lib/systemd/boot
/usr/lib/systemd/boot/efi
/usr/lib/systemd/boot/efi/linuxx64.elf.stub
/usr/lib/systemd/boot/efi/linuxx64.efi.stub
/usr/lib/systemd/boot/efi/systemd-bootx64.efi
/usr/lib/systemd/systemd-import
/usr/lib/systemd/systemd-sulogin-shell
/usr/lib/systemd/libsystemd-shared-253.5-2.so
/usr/lib/systemd/systemd-oomd
/usr/lib/systemd/systemd-hostnamed
/usr/lib/systemd/systemd-bless-boot
/usr/lib/systemd/system-preset
/usr/lib/systemd/system-preset/90-systemd.preset
/usr/lib/systemd/system-preset/99-default.preset
/usr/lib/systemd/systemd-sysroot-fstab-check
/usr/lib/systemd/systemd-boot-check-no-failures

I've did a total reboot just to be sure, 'arma3server@arma3update' come in unit list with no log entry.
This thing is a ghost.

Offline

#11 2023-07-05 16:03:17

seth
Member
Registered: 2012-09-03
Posts: 58,303

Re: Remove unwanted systemd template instances

systemd shows you the template no matter what you put behind

systemctl status arma3server@grumpf.service # you don't have to post that

There're no ghosts, but what you're seeing in cockpit is likely some cockpit-cached stuff that has nothing to do w/ the rest of the system.

Online

#12 2023-07-05 16:26:03

Artyom
Member
Registered: 2017-03-27
Posts: 68

Re: Remove unwanted systemd template instances

○ arma3server@grumpf.service - ArmA 3 Server
     Loaded: loaded (/etc/systemd/system/arma3server@.service; disabled; preset: disabled)
     Active: inactive (dead)
○ arma3server@arma3modupdate.service - ArmA 3 Server
     Loaded: loaded (/etc/systemd/system/arma3server@.service; disabled; preset: disabled)
     Active: inactive (dead)
● arma3server@OpEx.service - ArmA 3 Server
     Loaded: loaded (/etc/systemd/system/arma3server@.service; enabled; preset: disabled)
     Active: active (running) since Wed 2023-07-05 17:18:29 CEST; 1h 6min ago
    Process: 661 ExecStartPre=/home/steam/ArmA_3/arma3server_update.sh (code=exited, status=0/SUCCESS)
   Main PID: 1835 (arma3server_sta)
      Tasks: 31 (limit: 77028)
     Memory: 18.9G
        CPU: 2min 1.398s
     CGroup: /system.slice/system-arma3server.slice/arma3server@OpEx.service
             ├─1835 /bin/bash /home/steam/ArmA_3/arma3server_start.sh OpEx
             └─1836 ./arma3server -name=OpEx -config=configs/OpEx.cfg -port=2302 "-mod=mods/@CBA_A3;mods/@ACE_A3;mods/@LAMBS_Danger;mods/@LAMBS_Suppression>
seth wrote:

There're no ghosts, but what you're seeing in cockpit is likely some cockpit-cached stuff that has nothing to do w/ the rest of the system.

I think cockpit just report whats in:

 sudo systemctl list-units --all 

And as you can see the mistake instance is listed

sudo systemctl list-units --all | grep arma3server@
  arma3server@arma3modupdate.service                                                           loaded    inactive dead      ArmA 3 Server
  arma3server@OpEx.service                                                                     loaded    active   running   ArmA 3 Server
   

Last edited by Artyom (2023-07-05 16:28:28)

Offline

#13 2023-07-05 19:12:55

seth
Member
Registered: 2012-09-03
Posts: 58,303

Re: Remove unwanted systemd template instances

Did you ever reboot after removing the service?

Online

#14 2023-07-05 19:15:28

Artyom
Member
Registered: 2017-03-27
Posts: 68

Re: Remove unwanted systemd template instances

seth wrote:

Did you ever reboot after removing the service?

Yes I did, several times, after system updates.

Offline

#15 2023-07-05 19:19:55

seth
Member
Registered: 2012-09-03
Posts: 58,303

Re: Remove unwanted systemd template instances

sudo find / -xdev -name '*arma3server*'

This will obviously search the entire filesystem on the root partition…

Online

#16 2023-07-05 19:25:46

Artyom
Member
Registered: 2017-03-27
Posts: 68

Re: Remove unwanted systemd template instances

/etc/systemd/system/arma3server@.service
/etc/systemd/system/multi-user.target.wants/arma3server@OpEx.service
/home/steam/ArmA_3/arma3server_readme.txt
/home/steam/ArmA_3/arma3server_x64
/home/steam/ArmA_3/arma3server
/home/steam/ArmA_3/arma3server_update.sh
/home/steam/ArmA_3/arma3server_start.sh
/var/tmp/systemd-private-7a9df9a27ac145458b043b33a3618fd1-arma3server@OpEx.service-h6EoRH
/var/lib/systemd/timers/stamp-arma3server@OpEx.timer

No luck here

Offline

#17 2023-07-05 20:14:35

seth
Member
Registered: 2012-09-03
Posts: 58,303

Re: Remove unwanted systemd template instances

sudo find /run -xdev -name '*arma3server*'
systemctl show --property=UnitPath | cat # systemd thinks it's clever to less that single, loooong, line …

Online

#18 2023-07-06 05:14:34

Artyom
Member
Registered: 2017-03-27
Posts: 68

Re: Remove unwanted systemd template instances

/run/systemd/propagate/arma3server@OpEx.service
/run/systemd/units/invocation:arma3server@OpEx.service
UnitPath=/etc/systemd/system.control /run/systemd/system.control /run/systemd/transient /run/systemd/generator.early /etc/systemd/system /etc/systemd/system.attached /run/systemd/system /run/systemd/system.attached /run/systemd/generator /usr/local/lib/systemd/system /usr/lib/systemd/system /run/systemd/generator.late

Offline

#19 2023-07-06 06:03:01

seth
Member
Registered: 2012-09-03
Posts: 58,303

Re: Remove unwanted systemd template instances

systemctl list-unit-files 2>&1 | grep arma3server

It must be autogenerated, but no idea why?

I have an instance of the `arma3server@.service` template named `arma3server@arma3update.service` that was created by mistake.

How precisely was it created? The passive structure suggests "not by you"?

Online

#20 2023-07-06 10:59:40

Artyom
Member
Registered: 2017-03-27
Posts: 68

Re: Remove unwanted systemd template instances

seth wrote:
systemctl list-unit-files 2>&1 | grep arma3server

It must be autogenerated, but no idea why?

arma3server@.service                                                      indirect        disabled

I have an instance of the `arma3server@.service` template named `arma3server@arma3update.service` that was created by mistake.

How precisely was it created? The passive structure suggests "not by you"?

It was presumaby created by a co-administrator of the server, eather by using is own admin user or a user named 'steam'.
The command used was probably

sudo systemctl start arma3server@arma3modupdate

The initial will was to launch the dedicated oneshot service that update ArmA 3 mods but he just append 'arma3modupdate' as instance name for server itself.
The server must have started normaly with default configuration (arma3modupdate was not a possible configuration file).

Offline

#21 2023-07-06 12:11:21

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: Remove unwanted systemd template instances

Artyom wrote:

It was presumaby created by a co-administrator

Can you ask them?  Who is this co-administrator?

Artyom wrote:

or a user named 'steam'.

Is this SteamOS?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#22 2023-07-06 17:10:22

Artyom
Member
Registered: 2017-03-27
Posts: 68

Re: Remove unwanted systemd template instances

Trilby wrote:
Artyom wrote:

It was presumaby created by a co-administrator

Can you ask them?  Who is this co-administrator?

I already did, he has no clue. He his a friend that manage the server when I am not available. I don't think he did anything special to the system.

Trilby wrote:
Artyom wrote:

or a user named 'steam'.

Is this SteamOS?

Nope, 100% arch. I create the user steam to launch all game server without privileges.

Offline

#23 2023-07-06 19:32:16

seth
Member
Registered: 2012-09-03
Posts: 58,303

Re: Remove unwanted systemd template instances

Artyom wrote:

The command used was probably

sudo systemctl start arma3server@arma3modupdate

"Probably"?
Probably this is still what's happening.

Three ways to figure how and where:
1. grep the entire filesystem for the token (start w/ /etc)
2. replace /usr/bin/systemctl w/ a script that checks the parameters and logs the chain of parenting processes when something suspicious is called (but this isn't gonna help if it was added simply to /etc/profile etc.)
3. Go to a hardware store, purchase a $5 wrench (a huge one) and convince your co-worker to think harder to remember what exactly he did, actually - not probably.

Online

#24 2023-07-08 17:38:47

Artyom
Member
Registered: 2017-03-27
Posts: 68

Re: Remove unwanted systemd template instances

So, after some research, I can confirm that my friend did create the error with the command 'sudo systemctl start arma3server@arma3modupdate'.
I've also confirmed that other previous instances had been created but that these no longer appear in the list of units, and this without any particular manipulation.
I've also confirmed that apart from the list of units and the history of commands for manipulating the instance, it doesn't seem to appear anywhere else.
I'm wondering if there isn't an automated system that takes care of deleting instances that don't seem to have been used for some time.
I'm going to leave the instance alone for a week or two to see if it disappears by itself or not.

Offline

#25 2023-07-08 18:27:42

seth
Member
Registered: 2012-09-03
Posts: 58,303

Re: Remove unwanted systemd template instances

I've also confirmed that apart from the list of units and the history of commands for manipulating the instance, it doesn't seem to appear anywhere else.

How? By grepping the filesystem?
The service isn't made up out of thin air.

Online

Board footer

Powered by FluxBB