I got around this by first creating the log files manually, as owned by the
desired user. This should cover you:
sudo -u borg touch /var/log/borg/connectifier/{stderr,stdout}.log
Matt
On 2 May 2012 14:42, Ben McCann <[email protected]> wrote:
> Hi,
>
> I installed supervisor on Ubuntu 12.04 Precise Pangolin by running "sudo
> apt-get install supervisor". This installed 3.0a8 running as root.
>
> I created a program section which sets the logfile paths:
> [program:connectifier]
> user=borg
> command=/usr/local/borg/bin/connectifier/connectifier-1.0/start
> -Dlogger.resource=logger-prod.xml -Dhttp.port=8201
> stderr_logfile=/var/log/borg/connectifier/stderr.log
> stdout_logfile=/var/log/borg/connectifier/stdout.log
>
> Both of these log files are owned by root. Is there a way I can have them
> owned by the borg user instead? I'd like each user who's running an
> application to be able to read the logs for that application. It doesn't
> make sense to me that you could kill a process, but not read its logs, but
> maybe I'm missing something.
>
> Thanks,
> Ben
>
>
> _______________________________________________
> Supervisor-users mailing list
> [email protected]
> http://lists.supervisord.org/mailman/listinfo/supervisor-users
>
>
--
*Matt Black*
Senior Developer
[image: JBA Digital] <http://www.jbadigital.com/>
*JBA Online Consultancy*
M: +61 (0) 421 073 321
W: www.jbadigital.com
A: Level 1, 2 Darling Street, South Yarra, Melbourne 3141
The information contained in this email is confidential and is intended for
the use of the individual or entity named above. If the receiver of this
message is not the intended recipient, you are hereby notified that any
dissemination, distribution or copy of this email is strictly prohibited.
If you have received this e-mail in error, please notify our office by
telephone. JB/A and their employees do not represent that this transmission
is free from viruses or other defects and you should see it as your
responsibility to check for viruses and defects. JB/A disclaims any
liability to any person for loss or damage resulting (directly or
indirectly) from the receipt of electronic mail (including enclosures).
_______________________________________________
Supervisor-users mailing list
[email protected]
http://lists.supervisord.org/mailman/listinfo/supervisor-users