>>> Paul Menzel <pmenzel+systemd-devel@xxxxxxxxxxxxx> schrieb am 06.05.2020 um 11:26 in Nachricht <12189_1588757179_5EB282BB_12189_122_1_f3c28f74-4675-ff7b-edd2-66f52e12831f@molg n.mpg.de>: > Dear Ulrich, > > > Am 06.05.20 um 11:21 schrieb Ulrich Windl: > >> I have a question for systemd-228-150.82.1.x86_64 (of SLES12 SP4): >> While developing a script for logrotate, I tested this command with the >> following result: >> >> # systemctl kill -s HUP --kill-who=15862 iotwatch@LOC1.service >> Failed to kill unit iotwatch@LOC1.service: Invalid who argument 15862 > > […] > >> Did I misinterpret the manual page, or what is the problem? >> >> --kill-who= >> When used with kill, choose which processes to send a signal to. >> Must be one of main, control or all to select whether to kill > only >> the main process, the control process or all processes of the >> unit. > > I understand it, that only *main*, *control* or *all* are valid arguments. Ah "main" is literal. Sorry, I misinterpreted the manual page thinking -kill-who expects a PID of the types listed... > > > Kind regards, > > Paul > _______________________________________________ > systemd-devel mailing list > systemd-devel@xxxxxxxxxxxxxxxxxxxxx > https://lists.freedesktop.org/mailman/listinfo/systemd-devel _______________________________________________ systemd-devel mailing list systemd-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/systemd-devel