Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 656004 - www-misc/zoneminder fails to start with systemd 238-r6
Summary: www-misc/zoneminder fails to start with systemd 238-r6
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-18 08:07 UTC by zless
Modified: 2020-05-05 07:26 UTC (History)
0 users

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


Attachments
emerge --info (emerge_info.txt,5.89 KB, text/plain)
2018-05-18 08:07 UTC, zless
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zless 2018-05-18 08:07:57 UTC
Created attachment 531980 [details]
emerge --info

With the recent systemd upgrade (from version 236 to current 238) zoneminder will fail to start with the following error in the logs:

zoneminder.service: New main PID 360 does not belong to service, and PID file is not owned by root. Refusing.

I took a look at the Arch Linux service file and I see that they run the service as the apache user

This user change also requires that the '/var/run/zm' directory exists.

In the end this needs to be added to the service file.

[Service]
User=apache
RuntimeDirectory=zm