2015年06月24日
このエントリーをはてなブックマークに追加
今までのような init.d での管理だけでは無くなっています。このあたりは CentOS7 でも一緒ですね。

参考
サービス/ジョブの管理

管理方法としては、Upstart と、今までの System V系 があります。
Upstart 系では、initctl list のコマンドを利用し、System V系では、sysv-rc-confを利用するのが簡単かと思います。

initctl list |grep running
---------------------
mountnfs-bootclean.sh start/running
rsyslog start/running, process 292
udev start/running, process 155
upstart-udev-bridge start/running, process 146
mountall.sh start/running
ssh start/running, process 443
checkroot.sh start/running
cron start/running, process 435
mountkernfs.sh start/running
xinetd start/running, process 432
checkfs.sh start/running
checkroot-bootclean.sh start/running
mountnfs.sh start/running
bootmisc.sh start/running
upstart-socket-bridge start/running, process 320
mountdevsubfs.sh start/running
upstart-file-bridge start/running, process 321
container-detect start/running
mtab.sh start/running
network-interface (venet0) start/running
network-interface (lo) start/running
mountall-bootclean.sh start/running
network-interface-security (network-interface/venet0) start/running
network-interface-security (network-interface/lo) start/running
network-interface-security (networking) start/running
---------------------
サービスの実行・停止は以下のコマンド
initctl stop [service名]
initctl start [service名]


・System V系
コマンドのインストール
apt-get install sysv-rc-conf

sysv-rc-conf --list
sysv-rc-conf [service名] on
sysv-rc-conf [service名] off
レベルは適当に指定されていました。

なんか、以下のような感じで出力されるので変な感じです。
apache2 0:off 1:off 2:off 3:off 4:off 5:off 6:off
console-setu
cron
halt 0:on
killprocs 1:on
kmod
networking
ondemand 2:on 3:on 4:on 5:on
postfix 0:off 1:off 2:off 3:off 4:off 5:off 6:off
potfix 2:off 3:off 4:off 5:off
procps
quota 0:off 6:off S:on
quotarpc
rc.local 2:on 3:on 4:on 5:on
reboot 6:on
rsync
rsyslog
screen-clean 0:off 1:off 2:on 3:on 4:on 5:on 6:off
sendsigs 0:on 6:on
single 1:on
ssh
sudo
udev
umountfs 0:on 6:on
umountroot 0:on 6:on
urandom 0:on 6:on S:on
vzquota 0:off 1:off 2:on 3:on 4:on 5:on 6:off
vzreboot
xinetd


stock_value at 20:42│Comments(0)TrackBack(0)技術:2015年 

トラックバックURL

この記事にコメントする

名前:
URL:
  情報を記憶: 評価: 顔