Skip to content

Commit

Permalink
Change: Don't fork notus-scanner in service file
Browse files Browse the repository at this point in the history
There is no need to use forking with systemd. We already changed all
other services to run in "foreground".
  • Loading branch information
bjoernricks committed Jan 26, 2024
1 parent 51e134e commit cd43522
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions config/notus-scanner.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ Wants=mosquitto.service
ConditionKernelCommandLine=!recovery

[Service]
Type=forking
Type=exec
User=gvm
RuntimeDirectory=notus-scanner
RuntimeDirectoryMode=2775
PIDFile=/run/notus-scanner/notus-scanner.pid
ExecStart=/usr/local/bin/notus-scanner
ExecStart=/usr/local/bin/notus-scanner --foreground
SuccessExitStatus=SIGKILL
Restart=always
RestartSec=60
Expand Down

0 comments on commit cd43522

Please sign in to comment.