Hello, I want to set non-default permission to the log file created for my service.
- My service is started and named in */etc/systemd/system/hive_manager.service.* - Then, in */etc/rsyslog.d/hive_manager.conf* the name of the log is defined by the following condition: *if $programname == 'hive_manager' then /home/pi/logs/hive_manager.log* - Finally, in */etc/rsyslog.conf * I have the following definitions: *#* *# Set the default permissions for all log files.* *#* *$FileOwner root* *$FileGroup adm* *$FileCreateMode 0640* *$DirCreateMode 0755* *$Umask 0022* *# Include all config files in /etc/rsyslog.d/* *#* *$IncludeConfig /etc/rsyslog.d/*.conf* Currently, the */home/pi/logs/hive_manager.log* is created under the root permissions (the default). I need to configure its creation under different user permissions. How can I do it? I couldn't find any help with it in the relevant forums. Thanks a lot! Have a good day! Alexander Birman +972-54-7556432 _______________________________________________ rsyslog mailing list https://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com/professional-services/ What's up with rsyslog? Follow https://twitter.com/rgerhards NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.