FZUG / repo

Fedora 中文社区软件源
https://zh.fedoracommunity.org/repo/
528 stars 97 forks source link

addpkg: frp@0.40.0 #392

Closed zhullyb closed 10 months ago

sztsian commented 2 years ago

Although those systemd services won't be started by default, it is possible that when users want to uninstall frp* itself, the service is left running unintentional. That will result in a strange status like (taking a bad trace-cmd as an example)

$ sudo systemctl status trace-cmd
● trace-cmd.service
     Loaded: not-found (Reason: Unit trace-cmd.service not found.)
     Active: active (exited) since Wed 2022-03-16 21:48:33 HKT; 34s ago
   Main PID: 163287 (code=exited, status=0/SUCCESS)

To avoid such status, please add a preun script to stop all those service. For example,

%preun
%systemd_preun %{name}.service