restart syslog in cloudlinux [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I've recently modified the /var/log/secure log to test a remote log aggregation tool and that, of course, prevented syslog from further writing to that log.
Question: How do i restart syslog on this CloudLinux box I have?
I'm used to syslog being under /etc/init.d/syslog for other Linux distros and just a simple restart command does it however on CloudLinux syslog is under /etc/logrotate/syslog and, as far as I could read, it's part of a cron job now or something like that.

On CloudLinux 6 (as well as CentOS6) it is /etc/init.d/rsyslog

Related

Installing a script file in 1200 Linux servers [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I need put a script file and a line in crontab in 1200 Linux servers.
How could I do this task automatically ?
Many many options!
write a script that connects via SSH to each of those servers, and have it create your script file & modify crontab!
use Ansible!
use SaltStack!
use < some other configuration management framework >!
Seriously though, are you suggesting you are in charge of 1200 servers and the usual procedure of doing, well, anything is by hand? Flabbergasting!

Starting apache web server at every reboot cloud-init [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I am pretty new in the cloud-init. I got VM everything is setup and running and I designed the reboot mechanism in the VM to use when VM requires reboot after installing updates. So when I reboot the VM Apache is not working by itself after reboot until I run the start command. Is there a way to make Apache start after every reboot?
problem solved, after reading this two sites
apache-server-doesnt-start-automatically
starting_apache_web_server_at_every_reboot_for_debian_ubuntu_linux
I added this line:
cloud_config['runcmd'].append(['update-rc.d', 'apache2', 'enable'])

Detect incoming ssh connection [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I'm working on a network with many Linux machines.
In one of them I have a file that I suspect was pushed by another machine.
The machines can access each other using ssh connections.
Is there anyway I can tell which machine pushed the file?
I tried looking for ssh logs but the /var/log/secure/ directory doesn't exist.
Depending on the distro and your logging settings, you may have some luck with /log/auth.
Try grep sshd /var/log/auth.log
Depends on your distro, you can check following files from your distro.
/var/log/secure
/var/log/auth.log
/var/log/syslog
/var/log/daemon.log

Why use the service command in linux? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
What is the difference between
service apache2 restart
and
/etc/init.d/apache2 restart
So basically why is the service command recommended compared to directly invoking the appropriate command?
The service command runs the init scripts in a predictable environment:
service runs a System V init script in as predictable environment as possible, removing most environment variables and with current working directory set to /.
from: http://linux.die.net/man/8/service

Linux CentOs Restart Services [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have some applications running on a remote CentOs server. I'd want them to restart in case of any unexpected server failures or shutdown or application crashes. Any suggestions on how could i achieve this ?
Just make them "respawn" in inittab. Init can maintain some processes as constantly running. Just set the process you need to continually run to have the action field type of "respawn".
See here.

Resources