You only need: [Service] TimeoutSec = 600
Good luck, Reio > On 26 Aug 2019, at 14:22, Herbert via clamav-users > <[email protected]> wrote: > > Followed instructions on how to custimize an existing systemd service: > > 1) Created new folder /etc/systemd/system/[email protected] > > 2) Created new file /etc/systemd/system/[email protected]/custom.conf > [Unit] > Description = Customized clamd scanner (%i) daemon > Documentation=man:clamd(8) man:clamd.conf(5) https://www.clamav.net/documents/ > # Check for database existence > # ConditionPathExistsGlob=@DBDIR@/main.{c[vl]d,inc} > # ConditionPathExistsGlob=@DBDIR@/daily.{c[vl]d,inc} > After = syslog.target nss-lookup.target network.target > [Service] > Type = forking > ExecStart = /usr/sbin/clamd -c /etc/clamd.d/%i.conf > #Restart = on-failure > TimeoutSec = 600 > > 3) systemctl status [email protected] reports an error: > Warning: The unit file, source configuration file or drop-ins of > [email protected] changed on disk. Run 'systemctl daemon-reload' to reload > units. > ● [email protected] - Customized clamd scanner (scan) daemon > Loaded: bad-setting (Reason: Unit [email protected] has a bad unit file > setting.) > Drop-In: /etc/systemd/system/[email protected] > └─custom.conf > Active: inactive (dead) > Docs: man:clamd(8) > man:clamd.conf(5) > https://www.clamav.net/documents/ > man:clamd(8) > man:clamd.conf(5) > https://www.clamav.net/documents/ > > [email protected]: Service has more than one ExecStart= setting, which is > only allowed for Type=oneshot services. Refusing. > > What am I missing? > > >> On 26.08.2019 12:08, Reio Remma via clamav-users wrote: >>> On 26/08/2019 12:27, Fajar A. Nugraha via clamav-users wrote: >>> On Mon, Aug 26, 2019 at 4:18 PM Herbert via clamav-users >>> <[email protected]> wrote: >>>> Hi all, >>>> >>>> System Fedora 5.2.9-200.fc30.x86_64 >>>> ClamAv 0.101.4 >>>> >>>> >>>> I wonder why a DNF update changes my customized >>>> /usr/lib/systemd/clam@,service file. >>>> >>> >>> ... because you shouldn't have modified that file? >>> https://docs.fedoraproject.org/en-US/quick-docs/understanding-and-administering-systemd/#modifying-existing-systemd-services >>> >>> >> >> Thanks for that link! >> >> I'm having to modify service configuration as well due to fairly outdated >> hardware where clamd loads about 3 minutes. >> >> Probably ought to bugrep it to Fedora/CentOS etc. >> >> Thanks, >> Reio >> >> >> _______________________________________________ >> >> clamav-users mailing list >> [email protected] >> https://lists.clamav.net/mailman/listinfo/clamav-users >> >> >> Help us build a comprehensive ClamAV guide: >> https://github.com/vrtadmin/clamav-faq >> >> http://www.clamav.net/contact.html#ml > > > _______________________________________________ > > clamav-users mailing list > [email protected] > https://lists.clamav.net/mailman/listinfo/clamav-users > > > Help us build a comprehensive ClamAV guide: > https://github.com/vrtadmin/clamav-faq > > http://www.clamav.net/contact.html#ml
_______________________________________________ clamav-users mailing list [email protected] https://lists.clamav.net/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
