LoginSignup
1
1

More than 5 years have passed since last update.

Centos7 note

Last updated at Posted at 2016-02-22

systemd

systemd & sysvinit

How systemd convert sysvinit?

Start the service: service foo start. After this, systemd-sysv-generator will generate this file /run/systemd/generator.late/foo.service

This is censu-client's unit-file.

# Automatically generated by systemd-sysv-generator

[Unit]
Documentation=man:systemd-sysv-generator(8)
SourcePath=/etc/rc.d/init.d/sensu-client
Description=LSB: Sensu monitoring framework client
Before=runlevel2.target runlevel3.target runlevel4.target runlevel5.target shutdown.target
After=remote-fs.target network-online.target network-online.target
Wants=network-online.target
Conflicts=shutdown.target

[Service]
Type=forking
Restart=no
TimeoutSec=5min
IgnoreSIGPIPE=no
KillMode=process
GuessMainPID=no
RemainAfterExit=yes
ExecStart=/etc/rc.d/init.d/sensu-client start
ExecStop=/etc/rc.d/init.d/sensu-client stop

/etc/sysctl.d

apply
# sysctl --system

vm.swappiness tuned ???

@ boot secuence, tuned runs after sysctl. So, your vm.swappiness conf via sysctl, overwriteen by tuned.

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1