Hi all,
I have a very strange case and need some assistance.
I want to use the debug on demand feature of rsyslog. For this, I need to set two environment variables. When I set these in a shell session and start rsyslog in the foreground, it works just fine.
But, I need to run rsyslog in the background. Then the set variables will not work.
Good morning,
I'm new to everything sysadmin.
I"m trying to set a few server processes to log to rsyslog (for future shipping abilities, etc.), but want to have clean log files on my local machine for convenience for the time being.
e.g.:
if $programname contains 'unicorn' then /var/log/myapp.log
I have set up myapp.log to be rotated on a daily basis.
I run FC10.
I needed rsyslog (which is included since FC8 ) to be compiled with a feature (mail output module) that was not in the system version.
I got the rsyslog source (same release as the system version 3.22.1) , did configure, make, make install and ended up with a rsyslog that was able to do what I wanted. Great success! I am happy.
**BTW- very new to scripting**
I have created a shell script to gzip the public_html files on our website. I have tested this script on another directory on our site and it worked, but when I replaced the directory with the public_html directory it failed.
I am executing this script via a cron job.
This is the script that works.
I have a script that crond runs each night. The script pulls some sensitive files from an SFTP server and stores them in a folder on the local machine.
I need to encrypt those files on the filesystem. Ideally, I could encrypt the folder they're stored in to require a password whenever the files are accessed. The problem is that then crond wouldn't be able to access the files.
Hello, After last pacman upgrade rsyslog refused to start.This also caused boot problems - systemd would go into infinite loop trying to start rsyslog and failing miserably.I've disabled rsyslog.service from chroot environment and booted from disk - it helped.I've also noticed that latest package version ( rsyslog-7.2.6-4-x86_64) does not ship with /etc/rsyslog.conf, soupgrad
I have a cron job that runs a PHP script and creates files (images). But the cron job is running as me (being me my own username), not apache, nobody, httpd, www... and all the files created belongs to this user.
If I run the the same script through a browser, it runs as apache.
I am running Ubuntu 12.04.1 LTS on EC2.
I am in Centos 6.0 (Linux) with a dedicated server..