查看自启动脚本查看重启SVN命令的方法

来源:互联网 发布:java volatile的用法 编辑:程序博客网 时间:2024/06/17 12:30

[root@localhost ~]# kill 1514   ---杀掉SVN进程


[root@localhost ~]# ps axu|grep svn  ---查看SVN进程

root     21564  0.0  0.0 112656   968 pts/1    S+   10:10   0:00 grep --color=auto svn


[root@localhost ~]# cat /etc/rc.local   ---查看自启动脚本


#!/bin/bash
# THIS FILE IS ADDED FOR COMPATIBILITY PURPOSES
#
# It is highly advisable to create own systemd services or udev rules
# to run scripts during boot instead of using this file.
#
# In contrast to previous versions due to parallel execution during boot
# this script will NOT be run after all other services.
#
# Please note that you must run 'chmod +x /etc/rc.d/rc.local' to ensure
# that this script will be executed during boot.

touch /var/lock/subsys/local
svnserve -d -r /home/svn/repos   --此条为SVN的重启命令
/usr/src/mongodb-linux-x86_64-2.6.4/bin/mongod --dbpath=/usr/src/mongodb-linux-x86_64-2.6.4/db --logpath=/usr/src/mongodb-linux-x86_64-2.6.4/log/mongodb.log --fork --auth
mknod /dev/ppp c 108 0
echo 1 > /proc/sys/net/ipv4/ip_forward


[root@localhost ~]# svnserve -d -r /home/svn/repos  --执行SVN重启命令


[root@localhost ~]# ps axu|grep svn          --查看SVN命令是否启动成功     
root     21569  0.0  0.0 176564   872 ?        Ss   10:10   0:00 svnserve -d -r /home/svn/repos
root     21571  0.0  0.0 112656   964 pts/1    S+   10:10   0:00 grep --color=auto svn

0 0