Hello everyone, I wanted to stop crowdsec1 my instance, but it gives me service error not found.
runagent -m crowdsec1 systemctl --user stop crowdsec1
Failed to stop crowdsec1.service: Unit crowdsec1.service not loaded.
Hello everyone, I wanted to stop crowdsec1 my instance, but it gives me service error not found.
runagent -m crowdsec1 systemctl --user stop crowdsec1
Failed to stop crowdsec1.service: Unit crowdsec1.service not loaded.
Are you sure the service was running/active?
In the svreenshot yes
Hello
Crowdsec is a rootfull container because we need to interract with the firewall and read log
So simply
systemctl stop crowdsec1
If you want to state if you are rootfull or rootless
systemctl cat service
or
systemctl --user cat service
And check where are located the service
In /home => rootless : systemctl --user start service
Not In /home => rootfull : systemctl start service
Rootfull should be the exception
Also you could use the show command but more complicated
systemctl show --property=User,DynamicUser,MainPID,Group crowdsec1
Thank you @stephdl very exhaustive.