Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 565716 - app-antivirus/clamav-0.98.7-r1 - services start with wrong permissions and without RuntimeDirectory
Summary: app-antivirus/clamav-0.98.7-r1 - services start with wrong permissions and wi...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Antivirus Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-13 21:16 UTC by Dennis Schridde
Modified: 2018-03-02 09:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2015-11-13 21:16:10 UTC
freshclamd bails out upon start from the systemd unit file with following message in the logs:
```
ERROR: Can't save PID to file /run/clamav/freshclam.pid: No such file or directory
```

Following patch fixes this:
```
--- freshclamd.service.orig     2015-11-13 22:15:17.849584088 +0100
+++ freshclamd.service  2015-11-13 22:15:34.503469285 +0100
@@ -3,6 +3,8 @@
 
 [Service]
 Type=forking
+User=clamav
+RuntimeDirectory=clamav
 PIDFile=/run/clamav/freshclam.pid
 ExecStart=/usr/bin/freshclam -d -p /run/clamav/freshclam.pid
 
```
Comment 1 Dennis Schridde 2015-11-13 21:18:48 UTC
The same also applies to the clamd.service file.
Comment 2 Thomas Raschbacher gentoo-dev 2015-12-17 19:06:30 UTC
Sorry, I have no idea about systemd as I don't use it myself, but patches welcome ;)
Comment 3 Thomas Raschbacher gentoo-dev 2018-03-02 09:30:37 UTC
please let me know if you still have a problem with current versions