What the best way to create a log file in an rpm spec file? The service I'm creating runs under an unprivileged user so cannot create files in /var/log/.
相关问题
- RPM spec %post doesn't execute in rpmbuild
- Building with rpmbuild under Ubuntu
- Rpm-build limitaitons
- What's the rule for the Name-Version-Release o
- “Missing” lib for rpm install when it is present i
相关文章
- python distutils not include the SWIG generated mo
- Distributing a python package along with module de
- How to set the rpmbuild destination folder
- Displaying information on non-installed RPM packag
- Application can't find python library installe
- How to abort the installation of an rpm package if
- What does the || : in this line of bash script fro
- How to exit rpm install in case of an error
You could create
/var/log/myservice/
directory and make it owned by your user. Inside %install or make install: (ignoring buildroot & such)This assumes you are running your service similarly to apache which often runs as user
apache
and still puts logs invar/log/apache
Then add the corresponding rule for
/var/log/myservice
in your spec file.