Centos 7: Difference between revisions

From Federal Burro of Information
Jump to navigationJump to search
No edit summary
 
(One intermediate revision by the same user not shown)
Line 22: Line 22:
Under the [Service] section in the file i added the following 2 lines:
Under the [Service] section in the file i added the following 2 lines:


Restart=always
Restart=always
RestartSec=3
RestartSec=3
 
After saving the file we need to reload the daemon configurations to ensure systemd is aware of the new file
After saving the file we need to reload the daemon configurations to ensure systemd is aware of the new file


systemctl daemon-reload
systemctl daemon-reload
 
Make it so that a service starts after the network is up ( Crudely )
 
[Unit]
After=network.target auditd.service
 
how did it boot?
 
systemd-analyze critical-chain

Latest revision as of 15:54, 8 December 2017

new stuff, things to think about:

  • systemd ( systemctl for all service admin work )
  • firewalld "easy mode" for firewall , no more iptables directly.
  • ntp not installed by default. ( ntpdate is installed by default )

vmware tools install centos 7 , vmware 5.5

yum -y install perl
mkdir /mnt/cdrom && mount /dev/cdrom /mnt/cdrom && mkdir -p /mnt/tmpfs
mount -o size=500M -t tmpfs none /mnt/tmpfs && cp /mnt/cdrom/VMwareTools-9.4.5-1598834.tar.gz /mnt/tmpfs
cd /mnt/tmpfs && tar zxvf VMwareTools-9.4.5-1598834.tar.gz && cd vmware-tools-distrib
./vmware-install.pl
( answer all the questions )
reboot

Systemd

Making it so that a service restarts if it fails:

Under the [Service] section in the file i added the following 2 lines:

Restart=always
RestartSec=3

After saving the file we need to reload the daemon configurations to ensure systemd is aware of the new file

systemctl daemon-reload

Make it so that a service starts after the network is up ( Crudely )

[Unit]
After=network.target auditd.service

how did it boot?

systemd-analyze critical-chain